#
-# $Id$
+# fontconfig/Makefile.am
#
# Copyright © 2003 Keith Packard
#
DOCSRC=@DOCSRC@
SUBDIRS=fontconfig fc-case fc-lang fc-glyphname fc-arch src \
- fc-cache fc-cat fc-list fc-match conf.d $(DOCSRC) test
+ fc-cache fc-cat fc-list fc-match fc-query fc-scan conf.d $(DOCSRC) test
EXTRA_DIST = \
fontconfig.pc.in \
fontconfig.spec.in \
fontconfig.spec \
fontconfig-zip.in
-DISTCLEANFILES = config.cache ChangeLog
+CLEANFILES = fonts.conf
+DISTCLEANFILES = config.cache ChangeLog doltcompile
MAINTAINERCLEANFILES = \
$(srcdir)/aclocal.m4 \
$(srcdir)/autoscan.log \
.PHONY: ChangeLog
-install-data-local:
+fonts.conf: fonts.conf.in Makefile
+ sed \
+ -e 's,@FC_CACHEDIR\@,$(FC_CACHEDIR),g' \
+ -e 's,@FC_DEFAULT_FONTS\@,$(FC_DEFAULT_FONTS),g' \
+ -e 's,@FC_FONTPATH\@,$(FC_FONTPATH),g' \
+ -e 's,@PACKAGE\@,$(PACKAGE),g' \
+ -e 's,@VERSION\@,$(VERSION),g' \
+ $< > $@.tmp && \
+ mv $@.tmp $@
+
+install-data-local: fonts.conf
$(mkinstalldirs) $(DESTDIR)$(configdir) $(DESTDIR)$(fc_cachedir)
if [ -f $(DESTDIR)$(configdir)/fonts.conf ]; then \
echo "backing up existing $(DESTDIR)$(configdir)/fonts.conf"; \
$(INSTALL_DATA) fonts.conf $(DESTDIR)$(configdir)/fonts.conf; \
fi; fi
@(if $(RUN_FC_CACHE_TEST); then \
- echo " fc-cache/fc-cache -s -f -v"; \
- fc-cache/fc-cache -s -f -v; \
+ echo " $(bindir)/fc-cache -s -f -v"; \
+ $(bindir)/fc-cache -s -f -v; \
else \
echo "***"; \
echo "*** Warning: fonts.cache not built"; \