]>
Commit | Line | Data |
---|---|---|
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-cat fc-list fc-match conf.d $(DOCSRC) test | |
27 | ||
28 | EXTRA_DIST = \ | |
29 | fontconfig.pc.in \ | |
30 | fonts.conf.in \ | |
31 | fonts.dtd \ | |
32 | fontconfig.spec.in \ | |
33 | fontconfig.spec \ | |
34 | fontconfig-zip.in | |
35 | ||
36 | pkgconfigdir=$(libdir)/pkgconfig | |
37 | pkgconfig_DATA = fontconfig.pc | |
38 | ||
39 | configdir=$(CONFDIR) | |
40 | config_DATA=fonts.dtd | |
41 | ||
42 | if CROSS_COMPILING | |
43 | RUN_FC_CACHE_TEST=false | |
44 | else | |
45 | RUN_FC_CACHE_TEST=test -z "$(DESTDIR)" | |
46 | endif | |
47 | ||
48 | install-data-local: | |
49 | $(mkinstalldirs) $(DESTDIR)$(configdir) | |
50 | if [ -f $(DESTDIR)$(configdir)/fonts.conf ]; then \ | |
51 | echo "backing up existing $(DESTDIR)$(configdir)/fonts.conf"; \ | |
52 | mv $(DESTDIR)$(configdir)/fonts.conf $(DESTDIR)$(configdir)/fonts.conf.bak; \ | |
53 | fi | |
54 | if [ -f $(srcdir)/fonts.conf ]; then \ | |
55 | echo " $(INSTALL_DATA) $(srcdir)/fonts.conf $(DESTDIR)$(configdir)/fonts.conf"; \ | |
56 | $(INSTALL_DATA) $(srcdir)/fonts.conf $(DESTDIR)$(configdir)/fonts.conf; \ | |
57 | else if [ -f fonts.conf ]; then \ | |
58 | echo " $(INSTALL_DATA) fonts.conf $(DESTDIR)$(configdir)/fonts.conf"; \ | |
59 | $(INSTALL_DATA) fonts.conf $(DESTDIR)$(configdir)/fonts.conf; \ | |
60 | fi; fi | |
61 | @(if $(RUN_FC_CACHE_TEST); then \ | |
62 | echo " fc-cache/fc-cache -f -v"; \ | |
63 | fc-cache/fc-cache -f -v; \ | |
64 | else \ | |
65 | echo "***"; \ | |
66 | echo "*** Warning: fonts.cache not built"; \ | |
67 | echo "***"; \ | |
68 | echo "*** Generate this file manually on host system using fc-cache"; \ | |
69 | echo "***"; \ | |
70 | fi) | |
71 | ||
72 | uninstall-local: | |
73 | if [ -f $(srcdir)/fonts.conf ]; then \ | |
74 | if cmp -s $(srcdir)/fonts.conf $(DESTDIR)$(configdir)/fonts.conf; then \ | |
75 | echo " uninstall standard $(DESTDIR)$(configdir)/fonts.conf"; \ | |
76 | rm -f $(DESTDIR)$(configdir)/fonts.conf; \ | |
77 | fi; \ | |
78 | else if [ -f fonts.conf ]; then \ | |
79 | if cmp -s fonts.conf $(DESTDIR)$(configdir)/fonts.conf; then \ | |
80 | echo " uninstall standard $(DESTDIR)$(configdir)/fonts.conf"; \ | |
81 | rm -f $(DESTDIR)$(configdir)/fonts.conf; \ | |
82 | fi; \ | |
83 | fi; fi | |
84 | ||
85 | debuild debuild-signed: debuild-dirs | |
86 | (cd $(distdir)/debian && debuild) | |
87 | ||
88 | debuild-unsigned: debuild-dirs | |
89 | (cd $(distdir)/debian && debuild -us -uc) | |
90 | ||
91 | debuild-dirs: distdir | |
92 | rm -f $(PACKAGE)_$(VERSION).orig.tar.gz | |
93 | rm -rf $(distdir).orig | |
94 | cp -a $(distdir) $(distdir).orig | |
95 | rm -rf $(distdir).orig/debian |