Ignore more build detritus
[platform/upstream/fontconfig.git] / Makefile.am
1
2 #  $Id$
3
4 #  Copyright © 2003 Keith Packard
5
6 #  Permission to use, copy, modify, distribute, and sell this software and its
7 #  documentation for any purpose is hereby granted without fee, provided that
8 #  the above copyright notice appear in all copies and that both that
9 #  copyright notice and this permission notice appear in supporting
10 #  documentation, and that the name of Keith Packard not be used in
11 #  advertising or publicity pertaining to distribution of the software without
12 #  specific, written prior permission.  Keith Packard makes no
13 #  representations about the suitability of this software for any purpose.  It
14 #  is provided "as is" without express or implied warranty.
15
16 #  KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
17 #  INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
18 #  EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR
19 #  CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
20 #  DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
21 #  TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
22 #  PERFORMANCE OF THIS SOFTWARE.
23
24 DOCSRC=@DOCSRC@
25 SUBDIRS=fontconfig fc-case fc-lang fc-glyphname src \
26         fc-cache fc-list fc-match conf.d $(DOCSRC) test
27
28 DEBIAN = \
29         debian/changelog \
30         debian/compat \
31         debian/control \
32         debian/copyright \
33         debian/fontconfig.config \
34         debian/fontconfig.defoma \
35         debian/fontconfig.dirs \
36         debian/fontconfig.install \
37         debian/fontconfig.postinst \
38         debian/fontconfig.postrm \
39         debian/fontconfig.templates \
40         debian/fontconfig-udeb.install \
41         debian/libfontconfig1-dev.install \
42         debian/libfontconfig1.install \
43         debian/local.conf.md5sum \
44         debian/README.Debian \
45         debian/rules \
46         debian/autohint.conf \
47         debian/no-sub-pixel.conf \
48         debian/unhinted.conf \
49         debian/po/POTFILES.in \
50         debian/po/templates.pot \
51         debian/po/cs.po \
52         debian/po/da.po \
53         debian/po/de.po \
54         debian/po/es.po \
55         debian/po/fr.po \
56         debian/po/ja.po \
57         debian/po/nl.po \
58         debian/po/pt_BR.po \
59         debian/po/pt.po \
60         debian/po/tr.po \
61         debian/po/zh_CN.po
62          
63 EXTRA_DIST = \
64         fontconfig.pc.in \
65         fonts.conf.in \
66         fonts.dtd \
67         fontconfig.spec.in \
68         fontconfig.spec \
69         fontconfig-zip.in \
70         $(DEBIAN)
71
72 pkgconfigdir=$(libdir)/pkgconfig
73 pkgconfig_DATA = fontconfig.pc
74
75 configdir=$(CONFDIR)
76 config_DATA=fonts.dtd
77
78 if CROSS_COMPILING
79   RUN_FC_CACHE_TEST=false
80 else
81   RUN_FC_CACHE_TEST=test -z "$(DESTDIR)"
82 endif
83
84 install-data-local:
85         $(mkinstalldirs) $(DESTDIR)$(configdir)
86         if [ -f $(DESTDIR)$(configdir)/fonts.conf ]; then \
87           echo "backing up existing $(DESTDIR)$(configdir)/fonts.conf"; \
88           mv $(DESTDIR)$(configdir)/fonts.conf $(DESTDIR)$(configdir)/fonts.conf.bak; \
89         fi
90         if [ -f $(srcdir)/fonts.conf ]; then \
91           echo " $(INSTALL_DATA) $(srcdir)/fonts.conf $(DESTDIR)$(configdir)/fonts.conf"; \
92           $(INSTALL_DATA) $(srcdir)/fonts.conf $(DESTDIR)$(configdir)/fonts.conf; \
93         else if [ -f fonts.conf ]; then \
94           echo " $(INSTALL_DATA) fonts.conf $(DESTDIR)$(configdir)/fonts.conf"; \
95           $(INSTALL_DATA) fonts.conf $(DESTDIR)$(configdir)/fonts.conf; \
96         fi; fi
97         if $(RUN_FC_CACHE_TEST); then \
98             echo " fc-cache/fc-cache -f -v"; \
99             fc-cache/fc-cache -f -v; \
100         else \
101             echo "***"; \
102             echo "*** Warning: fonts.cache not built"; \
103             echo "***"; \
104             echo "*** Generate this file manually on host system using fc-cache"; \
105             echo "***"; \
106         fi
107
108 uninstall-local:
109         if [ -f $(srcdir)/fonts.conf ]; then \
110           if cmp -s $(srcdir)/fonts.conf $(DESTDIR)$(configdir)/fonts.conf; then \
111              echo " uninstall standard $(DESTDIR)$(configdir)/fonts.conf"; \
112              rm -f $(DESTDIR)$(configdir)/fonts.conf; \
113           fi; \
114         else if [ -f fonts.conf ]; then \
115           if cmp -s fonts.conf $(DESTDIR)$(configdir)/fonts.conf; then \
116              echo " uninstall standard $(DESTDIR)$(configdir)/fonts.conf"; \
117              rm -f $(DESTDIR)$(configdir)/fonts.conf; \
118           fi; \
119         fi; fi
120
121 debuild debuild-signed: debuild-dirs
122         (cd $(distdir)/debian && debuild)
123
124 debuild-unsigned: debuild-dirs
125         (cd $(distdir)/debian && debuild -us -uc)
126
127 debuild-dirs: distdir
128         rm -f $(PACKAGE)_$(VERSION).orig.tar.gz
129         rm -rf $(distdir).orig
130         cp -a $(distdir) $(distdir).orig
131         rm -rf $(distdir).orig/debian