]> git.wh0rd.org - fontconfig.git/blame - Makefile.am
Bug 24729 - [ne_NP] Fix ortho file
[fontconfig.git] / Makefile.am
CommitLineData
20fa60c9 1#
e690fbb2 2# fontconfig/Makefile.am
20fa60c9 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#
3074a73b 16# THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
20fa60c9 17# INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
3074a73b 18# EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
20fa60c9
KP
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@
2b629781 25SUBDIRS=fontconfig fc-case fc-lang fc-glyphname fc-arch src \
ba7b50ab
BE
26 fc-cache fc-cat fc-list fc-match fc-pattern fc-query fc-scan \
27 conf.d $(DOCSRC) test
dc2e06ab 28
20fa60c9
KP
29EXTRA_DIST = \
30 fontconfig.pc.in \
31 fonts.conf.in \
32 fonts.dtd \
8fc10a72 33 fontconfig.spec.in \
daeed6e0 34 fontconfig.spec \
fd11da84 35 fontconfig-zip.in
c08216c6 36CLEANFILES = fonts.conf
7042e236 37DISTCLEANFILES = config.cache doltcompile
2ec3ed08
KP
38MAINTAINERCLEANFILES = \
39 $(srcdir)/aclocal.m4 \
40 $(srcdir)/autoscan.log \
41 $(srcdir)/compile \
42 $(srcdir)/config.guess \
43 $(srcdir)/config.h.in \
44 $(srcdir)/config.sub \
45 $(srcdir)/configure.scan \
46 $(srcdir)/depcomp \
47 $(srcdir)/install-sh \
48 $(srcdir)/ltmain.sh \
49 $(srcdir)/missing \
50 $(srcdir)/mkinstalldirs \
51 `find "$(srcdir)" -type f -name Makefile.in -print`
20fa60c9
KP
52
53pkgconfigdir=$(libdir)/pkgconfig
54pkgconfig_DATA = fontconfig.pc
55
56configdir=$(CONFDIR)
4f27c1c0 57config_DATA=fonts.dtd
20fa60c9 58
d8ae9c92
KP
59if CROSS_COMPILING
60 RUN_FC_CACHE_TEST=false
61else
62 RUN_FC_CACHE_TEST=test -z "$(DESTDIR)"
63endif
64
2ec3ed08
KP
65# Creating ChangeLog from git log:
66
d07059b7 67MAINTAINERCLEANFILES += $(srcdir)/ChangeLog
2ec3ed08 68EXTRA_DIST += ChangeLog
d07059b7
BE
69ChangeLog: $(srcdir)/ChangeLog
70$(srcdir)/ChangeLog:
00268a50 71 if test -d "$(srcdir)/.git"; then \
b9b01b6e 72 (GIT_DIR=$(top_srcdir)/.git ./missing --run git log --stat) | fmt --split-only > $@.tmp \
2ec3ed08
KP
73 && mv -f $@.tmp $@ \
74 || ($(RM) $@.tmp; \
75 echo Failed to generate ChangeLog, your ChangeLog may be outdated >&2; \
76 (test -f $@ || echo git-log is required to generate this file >> $@)); \
77 else \
78 test -f $@ || \
79 (echo A git checkout and git-log is required to generate ChangeLog >&2 && \
80 echo A git checkout and git-log is required to generate this file >> $@); \
81 fi
82
00268a50 83.PHONY: ChangeLog
2ec3ed08 84
c08216c6
DN
85fonts.conf: fonts.conf.in Makefile
86 sed \
87 -e 's,@FC_CACHEDIR\@,$(FC_CACHEDIR),g' \
88 -e 's,@FC_DEFAULT_FONTS\@,$(FC_DEFAULT_FONTS),g' \
89 -e 's,@FC_FONTPATH\@,$(FC_FONTPATH),g' \
90 -e 's,@PACKAGE\@,$(PACKAGE),g' \
91 -e 's,@VERSION\@,$(VERSION),g' \
92 $< > $@.tmp && \
93 mv $@.tmp $@
94
95install-data-local: fonts.conf
4c34c0c5 96 $(mkinstalldirs) $(DESTDIR)$(configdir) $(DESTDIR)$(fc_cachedir)
4f27c1c0
KP
97 if [ -f $(DESTDIR)$(configdir)/fonts.conf ]; then \
98 echo "backing up existing $(DESTDIR)$(configdir)/fonts.conf"; \
99 mv $(DESTDIR)$(configdir)/fonts.conf $(DESTDIR)$(configdir)/fonts.conf.bak; \
100 fi
101 if [ -f $(srcdir)/fonts.conf ]; then \
102 echo " $(INSTALL_DATA) $(srcdir)/fonts.conf $(DESTDIR)$(configdir)/fonts.conf"; \
103 $(INSTALL_DATA) $(srcdir)/fonts.conf $(DESTDIR)$(configdir)/fonts.conf; \
104 else if [ -f fonts.conf ]; then \
105 echo " $(INSTALL_DATA) fonts.conf $(DESTDIR)$(configdir)/fonts.conf"; \
106 $(INSTALL_DATA) fonts.conf $(DESTDIR)$(configdir)/fonts.conf; \
107 fi; fi
9596dce9 108 @(if $(RUN_FC_CACHE_TEST); then \
2c93614e
BE
109 echo "fc-cache$(EXEEXT) -s -f -v"; \
110 fc-cache/fc-cache$(EXEEXT) -s -f -v; \
d8ae9c92 111 else \
b152a85b
PL
112 echo "***"; \
113 echo "*** Warning: fonts.cache not built"; \
114 echo "***"; \
115 echo "*** Generate this file manually on host system using fc-cache"; \
116 echo "***"; \
117 fi)
fc2cc873
KP
118
119uninstall-local:
120 if [ -f $(srcdir)/fonts.conf ]; then \
121 if cmp -s $(srcdir)/fonts.conf $(DESTDIR)$(configdir)/fonts.conf; then \
122 echo " uninstall standard $(DESTDIR)$(configdir)/fonts.conf"; \
123 rm -f $(DESTDIR)$(configdir)/fonts.conf; \
124 fi; \
125 else if [ -f fonts.conf ]; then \
126 if cmp -s fonts.conf $(DESTDIR)$(configdir)/fonts.conf; then \
127 echo " uninstall standard $(DESTDIR)$(configdir)/fonts.conf"; \
128 rm -f $(DESTDIR)$(configdir)/fonts.conf; \
129 fi; \
130 fi; fi
dc2e06ab
KP
131
132debuild debuild-signed: debuild-dirs
133 (cd $(distdir)/debian && debuild)
134
135debuild-unsigned: debuild-dirs
136 (cd $(distdir)/debian && debuild -us -uc)
137
138debuild-dirs: distdir
139 rm -f $(PACKAGE)_$(VERSION).orig.tar.gz
140 rm -rf $(distdir).orig
141 cp -a $(distdir) $(distdir).orig
142 rm -rf $(distdir).orig/debian