]> git.wh0rd.org - fontconfig.git/blobdiff - fc-match/Makefile.am
Distribute man source files for command line programs (bug 9678).
[fontconfig.git] / fc-match / Makefile.am
index 229ac60f5e402fce2992da9936b74ab09a792440..c5e77da367c869d488382f9cdb126d7753045e54 100644 (file)
@@ -1,7 +1,7 @@
 # 
 #  $Id$
 # 
-#  Copyright © 2003 Keith Packard
+#  Copyright Â© 2003 Keith Packard
 # 
 #  Permission to use, copy, modify, distribute, and sell this software and its
 #  documentation for any purpose is hereby granted without fee, provided that
 
 bin_PROGRAMS=fc-match
 
+DOC2MAN = docbook2man
+
+FC_MATCH_SRC=${top_srcdir}/fc-match
+
+SGML = ${FC_MATCH_SRC}/fc-match.sgml
+
+INCLUDES=-I${top_srcdir} $(FREETYPE_CFLAGS) $(WARN_CFLAGS)
+
 man_MANS=fc-match.1
 
-INCLUDES=$(FREETYPE_CFLAGS)
+EXTRA_DIST=fc-match.sgml $(man_MANS)
+
+fc_match_LDADD = $(FREETYPE_LIBS) $(LIBXML2_LIBS) $(EXPAT_LIBS) ${top_builddir}/src/libfontconfig.la
+
+if USEDOCBOOK
+
+${man_MANS}: ${SGML}
+       $(RM) $@
+       $(DOC2MAN) ${SGML}
+       $(RM) manpage.refs manpage.links
+
+all-local: $(man_MANS)
 
-EXTRA_DIST=$(man_MANS)
+clean-local:
+       $(RM) $(man_MANS)
 
-fc_match_LDADD = ${top_builddir}/src/libfontconfig.la
+else
+all-local:
+clean-local:
+endif