]> git.wh0rd.org - fontconfig.git/blobdiff - Makefile.am
[fcstr.c] Embed a static 64-byte buffer in FcStrBuf
[fontconfig.git] / Makefile.am
index 6e1c207ebdb295358cc88fdd33bf041853600160..ec7a5d9a7aae43f59ebf9a05d37b81988a90a4d6 100644 (file)
@@ -1,5 +1,5 @@
 # 
-#  $Id$
+#  fontconfig/Makefile.am
 # 
 #  Copyright © 2003 Keith Packard
 # 
@@ -23,7 +23,7 @@
 
 DOCSRC=@DOCSRC@
 SUBDIRS=fontconfig fc-case fc-lang fc-glyphname fc-arch src \
-       fc-cache fc-cat fc-list fc-match fc-query 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 \
@@ -32,6 +32,7 @@ EXTRA_DIST = \
         fontconfig.spec.in \
         fontconfig.spec \
        fontconfig-zip.in
+CLEANFILES = fonts.conf
 DISTCLEANFILES = config.cache ChangeLog doltcompile
 MAINTAINERCLEANFILES = \
        $(srcdir)/aclocal.m4 \
@@ -81,7 +82,17 @@ ChangeLog:
 
 .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"; \