]> git.wh0rd.org - fontconfig.git/blame - Makefile.am
.cvsignore
[fontconfig.git] / Makefile.am
CommitLineData
20fa60c9
KP
1#
2# $Id$
3#
46b51147 4# Copyright © 2003 Keith Packard
20fa60c9
KP
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
2b45ef3a 24DOCSRC=@DOCSRC@
414f7202 25SUBDIRS=fontconfig fc-case fc-lang fc-glyphname src \
f28f090d 26 fc-cache fc-cat fc-list fc-match conf.d $(DOCSRC) test
20fa60c9 27
dc2e06ab
KP
28DEBIAN = \
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 \
dc2e06ab
KP
46 debian/po/POTFILES.in \
47 debian/po/templates.pot \
48 debian/po/cs.po \
49 debian/po/da.po \
50 debian/po/de.po \
51 debian/po/es.po \
52 debian/po/fr.po \
53 debian/po/ja.po \
54 debian/po/nl.po \
55 debian/po/pt_BR.po \
56 debian/po/pt.po \
57 debian/po/tr.po \
58 debian/po/zh_CN.po
59
20fa60c9
KP
60EXTRA_DIST = \
61 fontconfig.pc.in \
62 fonts.conf.in \
63 fonts.dtd \
8fc10a72 64 fontconfig.spec.in \
daeed6e0 65 fontconfig.spec \
dc2e06ab
KP
66 fontconfig-zip.in \
67 $(DEBIAN)
20fa60c9
KP
68
69pkgconfigdir=$(libdir)/pkgconfig
70pkgconfig_DATA = fontconfig.pc
71
72configdir=$(CONFDIR)
4f27c1c0 73config_DATA=fonts.dtd
20fa60c9 74
d8ae9c92
KP
75if CROSS_COMPILING
76 RUN_FC_CACHE_TEST=false
77else
78 RUN_FC_CACHE_TEST=test -z "$(DESTDIR)"
79endif
80
20fa60c9 81install-data-local:
c641c77d 82 $(mkinstalldirs) $(DESTDIR)$(configdir)
4f27c1c0
KP
83 if [ -f $(DESTDIR)$(configdir)/fonts.conf ]; then \
84 echo "backing up existing $(DESTDIR)$(configdir)/fonts.conf"; \
85 mv $(DESTDIR)$(configdir)/fonts.conf $(DESTDIR)$(configdir)/fonts.conf.bak; \
86 fi
87 if [ -f $(srcdir)/fonts.conf ]; then \
88 echo " $(INSTALL_DATA) $(srcdir)/fonts.conf $(DESTDIR)$(configdir)/fonts.conf"; \
89 $(INSTALL_DATA) $(srcdir)/fonts.conf $(DESTDIR)$(configdir)/fonts.conf; \
90 else if [ -f fonts.conf ]; then \
91 echo " $(INSTALL_DATA) fonts.conf $(DESTDIR)$(configdir)/fonts.conf"; \
92 $(INSTALL_DATA) fonts.conf $(DESTDIR)$(configdir)/fonts.conf; \
93 fi; fi
b152a85b 94 @(if $(RUN_FC_CACHE_TEST); then \
d8ae9c92
KP
95 echo " fc-cache/fc-cache -f -v"; \
96 fc-cache/fc-cache -f -v; \
97 else \
b152a85b
PL
98 echo "***"; \
99 echo "*** Warning: fonts.cache not built"; \
100 echo "***"; \
101 echo "*** Generate this file manually on host system using fc-cache"; \
102 echo "***"; \
103 fi)
fc2cc873
KP
104
105uninstall-local:
106 if [ -f $(srcdir)/fonts.conf ]; then \
107 if cmp -s $(srcdir)/fonts.conf $(DESTDIR)$(configdir)/fonts.conf; then \
108 echo " uninstall standard $(DESTDIR)$(configdir)/fonts.conf"; \
109 rm -f $(DESTDIR)$(configdir)/fonts.conf; \
110 fi; \
111 else if [ -f fonts.conf ]; then \
112 if cmp -s fonts.conf $(DESTDIR)$(configdir)/fonts.conf; then \
113 echo " uninstall standard $(DESTDIR)$(configdir)/fonts.conf"; \
114 rm -f $(DESTDIR)$(configdir)/fonts.conf; \
115 fi; \
116 fi; fi
dc2e06ab
KP
117
118debuild debuild-signed: debuild-dirs
119 (cd $(distdir)/debian && debuild)
120
121debuild-unsigned: debuild-dirs
122 (cd $(distdir)/debian && debuild -us -uc)
123
124debuild-dirs: distdir
125 rm -f $(PACKAGE)_$(VERSION).orig.tar.gz
126 rm -rf $(distdir).orig
127 cp -a $(distdir) $(distdir).orig
128 rm -rf $(distdir).orig/debian