]> git.wh0rd.org - fontconfig.git/blobdiff - fc-list/Makefile.am
Eliminate references to freetype from utility Makefile.am's
[fontconfig.git] / fc-list / Makefile.am
index 51c28036111e72e518885da66d76bb6f6e4cc531..dc9f4100398b9cc9228ed6b103f98d382bbe3b90 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
 #  TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
 #  PERFORMANCE OF THIS SOFTWARE.
 
+DOC2MAN = docbook2man
+
+FC_LIST_SRC=${top_srcdir}/fc-list
+
+SGML = ${FC_LIST_SRC}/fc-list.sgml
+
 bin_PROGRAMS=fc-list
 
-man1_MANS=fc-list.man
+INCLUDES=-I${top_srcdir} $(WARN_CFLAGS)
+
+man_MANS=fc-list.1
+
+EXTRA_DIST=fc-list.sgml $(man_MANS)
+
+fc_list_LDADD = ${top_builddir}/src/libfontconfig.la
+
+if USEDOCBOOK
+
+${man_MANS}: ${SGML}
+       $(RM) $@
+       $(DOC2MAN) ${SGML}
+       $(RM) manpage.refs manpage.links
+
+all-local: $(man_MANS)
 
-INCLUDES=$(FREETYPE_CFLAGS)
+clean-local:
+       $(RM) $(man_MANS)
 
-fc_list_LDADD = ../src/libfontconfig.la
+else
+all-local:
+clean-local:
+endif