]> git.wh0rd.org - fontconfig.git/blobdiff - fc-list/Makefile.am
Cleanup all manpage.* files
[fontconfig.git] / fc-list / Makefile.am
index dc9f4100398b9cc9228ed6b103f98d382bbe3b90..55a8e4d654e797a53e22ee341cae36282134c231 100644 (file)
@@ -1,5 +1,5 @@
 # 
-#  $Id$
+#  fontconfig/fc-list/Makefile.am
 # 
 #  Copyright © 2003 Keith Packard
 # 
@@ -31,9 +31,13 @@ bin_PROGRAMS=fc-list
 
 INCLUDES=-I${top_srcdir} $(WARN_CFLAGS)
 
-man_MANS=fc-list.1
+BUILT_MANS=fc-list.1
 
-EXTRA_DIST=fc-list.sgml $(man_MANS)
+if ENABLE_DOCS
+man_MANS=${BUILT_MANS}
+endif
+
+EXTRA_DIST=fc-list.sgml $(BUILT_MANS)
 
 fc_list_LDADD = ${top_builddir}/src/libfontconfig.la
 
@@ -42,7 +46,7 @@ if USEDOCBOOK
 ${man_MANS}: ${SGML}
        $(RM) $@
        $(DOC2MAN) ${SGML}
-       $(RM) manpage.refs manpage.links
+       $(RM) manpage.*
 
 all-local: $(man_MANS)