Commit 5b9ec638 authored by Jeremy C. Reed's avatar Jeremy C. Reed
Browse files


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.
parent 0fec09f3
......@@ -17,12 +17,26 @@ bind10_DATA = bob.spec
EXTRA_DIST = bob.spec
man_MANS = bind10.8
EXTRA_DIST += $(man_MANS) bind10.xml bind10_messages.mes
bind10.8: bind10.xml
xsltproc --novalid --xinclude --nonet -o $@ $(srcdir)/bind10.xml
@XSLTPROC@ --novalid --xinclude --nonet -o $@ $(srcdir)/bind10.xml
# @if grep "Man generation disabled" $(man_MANS) >/dev/null; then $(RM) $(man_MANS); fi
@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 > $@
# @echo "*** --enable-man must be used in order to make dist"
# @false
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment