]> git.wh0rd.org - fontconfig.git/blobdiff - doc/Makefile.am
Use CONFDIR instead of SYSCONFDIR/fonts in manual. Use awk to strip
[fontconfig.git] / doc / Makefile.am
index f5018103bda017e202a5ee912ce1ef02cf99b823..6a9d782762e5e009f7c587fd72c9ec4720346a8c 100644 (file)
@@ -134,6 +134,11 @@ fontconfig-user.html: fontconfig-user.sgml version.sgml confdir.sgml
        $(DOC2HTML) -u fontconfig-user.sgml
 
 fontconfig-user.txt:  fontconfig-user.sgml version.sgml confdir.sgml
+
+STRIPNL=awk '{ if (NR > 1) printf ("\n"); printf ("%s", $$0); }'
+confdir.sgml: confdir.sgml.in
+       sed "s,@CONFDIR\@,${CONFDIR}," < confdir.sgml.in | $(STRIPNL) > confdir.sgml
+
 else
 all-local:
 clean-local: