From: Jeremy C. Reed Date: Fri, 1 Jun 2012 19:39:31 +0000 (-0700) Subject: [trac1687] X-Git-Tag: trac2351_base~97^2~11 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5b9ec6389bc87be6214a3e40cdfc3375e467f0ce;p=thirdparty%2Fkea.git [trac1687] remove built man page on make clean. (maybe this should be for maintainer clean only?) Use $XSLTPROC macro instead of xsltproc. Generate dummy manpage if --enable-man is not defined. This idea came from pango source tree. This is workaround so that the dist tarball includes the manpage. (Some is commented out; this is not complete yet.) This is because "make dist" needs the manpages but I don't want normal "make" builds to require building them due to more build dependencies. --- diff --git a/src/bin/bind10/Makefile.am b/src/bin/bind10/Makefile.am index 69ea256157..68940c9dab 100644 --- a/src/bin/bind10/Makefile.am +++ b/src/bin/bind10/Makefile.am @@ -17,12 +17,26 @@ bind10_DATA = bob.spec EXTRA_DIST = bob.spec man_MANS = bind10.8 +CLEANFILES += $(man_MANS) EXTRA_DIST += $(man_MANS) bind10.xml bind10_messages.mes if ENABLE_MAN bind10.8: bind10.xml - xsltproc --novalid --xinclude --nonet -o $@ http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $(srcdir)/bind10.xml + @XSLTPROC@ --novalid --xinclude --nonet -o $@ http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $(srcdir)/bind10.xml + +#dist-local-check-mans-enabled: +# @if grep "Man generation disabled" $(man_MANS) >/dev/null; then $(RM) $(man_MANS); fi + +else + +$(man_MANS): + @echo Man generation disabled. Creating dummy $@. Configure with --enable-man to enable it. + @echo Man generation disabled. Remove this file, configure with --enable-man, and rebuild BIND 10 > $@ + +#dist-local-check-mans-enabled: +# @echo "*** --enable-man must be used in order to make dist" +# @false endif