bin_PROGRAMS=fc-cache
-man_MANS=fc-cache.1
+BUILT_MANS=fc-cache.1
-EXTRA_DIST=fc-cache.sgml $(man_MANS)
+if ENABLE_DOCS
+man_MANS=${BUILT_MANS}
+endif
+
+EXTRA_DIST=fc-cache.sgml $(BUILT_MANS)
fc_cache_LDADD = ${top_builddir}/src/libfontconfig.la
bin_PROGRAMS=fc-cat
-man_MANS=fc-cat.1
+BUILT_MANS=fc-cat.1
-EXTRA_DIST=fc-cat.sgml fc-cat.1
+if ENABLE_DOCS
+man_MANS=${BUILT_MANS}
+endif
+
+EXTRA_DIST=fc-cat.sgml ${BUILT_MANS}
fc_cat_LDADD = ${top_builddir}/src/libfontconfig.la
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
INCLUDES=-I${top_srcdir} $(WARN_CFLAGS)
-man_MANS=fc-match.1
+BUILT_MANS=fc-match.1
-EXTRA_DIST=fc-match.sgml $(man_MANS)
+if ENABLE_DOCS
+man_MANS=${BUILT_MANS}
+endif
+
+EXTRA_DIST=fc-match.sgml $(BUILT_MANS)
fc_match_LDADD = ${top_builddir}/src/libfontconfig.la