AC_PATH_PROGS(AWK, gawk awk)
AC_SUBST(AWK)
-AC_ARG_ENABLE(man, [AC_HELP_STRING([--enable-man],
- [regenerate man pages using Docbook [default=no]])],
- enable_man=$enableval, enable_man=no)
+AC_ARG_ENABLE(generate_docs, [AC_HELP_STRING([--enable-generate-docs],
+ [regenerate documentation using Docbook [default=no]])],
+ enable_generate_docs=$enableval, enable_generate_docs=no)
# Check for xsltproc
-if test "x$enable_man" != xno ; then
+if test "x$enable_generate_docs" != xno ; then
AC_PATH_PROG([XSLTPROC], [xsltproc])
if test -z "$XSLTPROC"; then
- AC_MSG_ERROR("xsltproc not found; it is required for --enable-man")
+ AC_MSG_ERROR("xsltproc not found; it is required for --enable-generate-docs")
else
AC_MSG_CHECKING([if $XSLTPROC works])
# run xsltproc to see if works
fi
-AM_CONDITIONAL(ENABLE_MAN, test x$enable_man != xno)
+AM_CONDITIONAL(GENERATE_DOCS, test x$enable_generate_docs != xno)
AC_ARG_ENABLE(install-configurations,
[AC_HELP_STRING([--disable-install-configurations],
C++ Code Coverage: $USE_LCOV
Python Code Coverage: $USE_PYCOVERAGE
Logger checks: $enable_logger_checks
- Generate Manuals: $enable_man
+ Generate Documentation: $enable_generate_docs
END
CLEANFILES = $(HTMLDOCS) $(DOCS) bind10-messages.xml
# This is not a "man" manual, but reuse this for now for docbook.
-if ENABLE_MAN
+if GENERATE_DOCS
bind10-guide.html: bind10-guide.xml
@XSLTPROC@ --novalid --xinclude --nonet \
else
$(HTMLDOCS) $(DOCS):
- @echo Doc generation disabled. Creating dummy $@. Configure with --enable-man to enable it.
- @echo Doc generation disabled. Remove this file, configure with --enable-man, and rebuild BIND 10 > $@
+ @echo Doc generation disabled. Creating dummy $@. Configure with --enable-generate-docs to enable it.
+ @echo Doc generation disabled. Remove this file, configure with --enable-generate-docs, and rebuild BIND 10 > $@
endif
CLEANFILES += $(man_MANS)
EXTRA_DIST = $(man_MANS) b10-auth.xml
-if ENABLE_MAN
+if GENERATE_DOCS
b10-auth.8: b10-auth.xml
@XSLTPROC@ --novalid --xinclude --nonet -o $@ http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $(srcdir)/b10-auth.xml
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 > $@
+ @echo Man generation disabled. Creating dummy $@. Configure with --enable-generate-docs to enable it.
+ @echo Man generation disabled. Remove this file, configure with --enable-generate-docs, and rebuild BIND 10 > $@
endif
CLEANFILES += $(man_MANS)
EXTRA_DIST += $(man_MANS) bind10.xml bind10_messages.mes
-if ENABLE_MAN
+if GENERATE_DOCS
bind10.8: bind10.xml
@XSLTPROC@ --novalid --xinclude --nonet -o $@ http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $(srcdir)/bind10.xml
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 > $@
+ @echo Man generation disabled. Creating dummy $@. Configure with --enable-generate-docs to enable it.
+ @echo Man generation disabled. Remove this file, configure with --enable-generate-docs, and rebuild BIND 10 > $@
#dist-local-check-mans-enabled:
-# @echo "*** --enable-man must be used in order to make dist"
+# @echo "*** --enable-generate-docs must be used in order to make dist"
# @false
endif
CLEANFILES = bindctl bindctl_main.pyc
CLEANFILES += $(man_MANS)
-if ENABLE_MAN
+if GENERATE_DOCS
bindctl.1: bindctl.xml
@XSLTPROC@ --novalid --xinclude --nonet -o $@ http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $(srcdir)/bindctl.xml
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 > $@
+ @echo Man generation disabled. Creating dummy $@. Configure with --enable-generate-docs to enable it.
+ @echo Man generation disabled. Remove this file, configure with --enable-generate-docs, and rebuild BIND 10 > $@
endif
CLEANFILES += $(man_MANS)
EXTRA_DIST = $(man_MANS) b10-cfgmgr.xml
-if ENABLE_MAN
+if GENERATE_DOCS
b10-cfgmgr.8: b10-cfgmgr.xml
@XSLTPROC@ --novalid --xinclude --nonet -o $@ http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $(srcdir)/b10-cfgmgr.xml
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 > $@
+ @echo Man generation disabled. Creating dummy $@. Configure with --enable-generate-docs to enable it.
+ @echo Man generation disabled. Remove this file, configure with --enable-generate-docs, and rebuild BIND 10 > $@
endif
CLEANFILES += $(man_MANS)
EXTRA_DIST += $(man_MANS) b10-cmdctl.xml cmdctl_messages.mes
-if ENABLE_MAN
+if GENERATE_DOCS
b10-cmdctl.8: b10-cmdctl.xml
@XSLTPROC@ --novalid --xinclude --nonet -o $@ http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $(srcdir)/b10-cmdctl.xml
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 > $@
+ @echo Man generation disabled. Creating dummy $@. Configure with --enable-generate-docs to enable it.
+ @echo Man generation disabled. Remove this file, configure with --enable-generate-docs, and rebuild BIND 10 > $@
endif
CLEANFILES += $(PYTHON_LOGMSGPKG_DIR)/work/dbutil_messages.pyo
CLEANFILES += $(man_MANS)
-if ENABLE_MAN
+if GENERATE_DOCS
b10-dbutil.8: b10-dbutil.xml
@XSLTPROC@ --novalid --xinclude --nonet -o $@ http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $(srcdir)/b10-dbutil.xml
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 > $@
+ @echo Man generation disabled. Creating dummy $@. Configure with --enable-generate-docs to enable it.
+ @echo Man generation disabled. Remove this file, configure with --enable-generate-docs, and rebuild BIND 10 > $@
endif
CLEANFILES += $(man_MANS)
EXTRA_DIST += $(man_MANS) b10-ddns.xml
-if ENABLE_MAN
+if GENERATE_DOCS
b10-ddns.8: b10-ddns.xml
@XSLTPROC@ --novalid --xinclude --nonet -o $@ http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $(srcdir)/b10-ddns.xml
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 > $@
+ @echo Man generation disabled. Creating dummy $@. Configure with --enable-generate-docs to enable it.
+ @echo Man generation disabled. Remove this file, configure with --enable-generate-docs, and rebuild BIND 10 > $@
endif
CLEANFILES += $(man_MANS)
EXTRA_DIST = $(man_MANS) b10-dhcp4.xml dhcp4.spec
-if ENABLE_MAN
+if GENERATE_DOCS
b10-dhcp4.8: b10-dhcp4.xml
@XSLTPROC@ --novalid --xinclude --nonet -o $@ \
http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl \
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 > $@
+ @echo Man generation disabled. Creating dummy $@. Configure with --enable-generate-docs to enable it.
+ @echo Man generation disabled. Remove this file, configure with --enable-generate-docs, and rebuild BIND 10 > $@
endif
CLEANFILES += $(man_MANS)
EXTRA_DIST = $(man_MANS) b10-dhcp6.xml dhcp6.spec
-if ENABLE_MAN
+if GENERATE_DOCS
b10-dhcp6.8: b10-dhcp6.xml
@XSLTPROC@ --novalid --xinclude --nonet -o $@ \
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 > $@
+ @echo Man generation disabled. Creating dummy $@. Configure with --enable-generate-docs to enable it.
+ @echo Man generation disabled. Remove this file, configure with --enable-generate-docs, and rebuild BIND 10 > $@
endif
EXTRA_DIST = $(man_MANS) b10-host.xml
.PHONY: man
-if ENABLE_MAN
+if GENERATE_DOCS
man: b10-host.1
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 > $@
+ @echo Man generation disabled. Creating dummy $@. Configure with --enable-generate-docs to enable it.
+ @echo Man generation disabled. Remove this file, configure with --enable-generate-docs, and rebuild BIND 10 > $@
endif
CLEANFILES += $(man_MANS)
EXTRA_DIST = $(man_MANS) b10-loadzone.xml
-if ENABLE_MAN
+if GENERATE_DOCS
b10-loadzone.8: b10-loadzone.xml
@XSLTPROC@ --novalid --xinclude --nonet -o $@ http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $(srcdir)/b10-loadzone.xml
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 > $@
+ @echo Man generation disabled. Creating dummy $@. Configure with --enable-generate-docs to enable it.
+ @echo Man generation disabled. Remove this file, configure with --enable-generate-docs, and rebuild BIND 10 > $@
endif
CLEANFILES += $(man_MANS)
EXTRA_DIST = $(man_MANS) msgq.xml
-if ENABLE_MAN
+if GENERATE_DOCS
b10-msgq.8: msgq.xml
@XSLTPROC@ --novalid --xinclude --nonet -o $@ http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $(srcdir)/msgq.xml
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 > $@
+ @echo Man generation disabled. Creating dummy $@. Configure with --enable-generate-docs to enable it.
+ @echo Man generation disabled. Remove this file, configure with --enable-generate-docs, and rebuild BIND 10 > $@
endif
CLEANFILES += $(man_MANS)
EXTRA_DIST = $(man_MANS) b10-resolver.xml resolver_messages.mes
-if ENABLE_MAN
+if GENERATE_DOCS
b10-resolver.8: b10-resolver.xml
@XSLTPROC@ --novalid --xinclude --nonet -o $@ http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $(srcdir)/b10-resolver.xml
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 > $@
+ @echo Man generation disabled. Creating dummy $@. Configure with --enable-generate-docs to enable it.
+ @echo Man generation disabled. Remove this file, configure with --enable-generate-docs, and rebuild BIND 10 > $@
endif
$(MAN1_FILES:.xml=.1)
CLEANFILES += $(man_MANS)
-if ENABLE_MAN
+if GENERATE_DOCS
.xml.1:
@XSLTPROC@ --novalid --xinclude --nonet -o $@ http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
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 > $@
+ @echo Man generation disabled. Creating dummy $@. Configure with --enable-generate-docs to enable it.
+ @echo Man generation disabled. Remove this file, configure with --enable-generate-docs, and rebuild BIND 10 > $@
endif
CLEANFILES += $(man_MANS)
EXTRA_DIST = $(man_MANS) b10-sockcreator.xml
-if ENABLE_MAN
+if GENERATE_DOCS
b10-sockcreator.8: b10-sockcreator.xml
@XSLTPROC@ --novalid --xinclude --nonet -o $@ http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $(srcdir)/b10-sockcreator.xml
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 > $@
+ @echo Man generation disabled. Creating dummy $@. Configure with --enable-generate-docs to enable it.
+ @echo Man generation disabled. Remove this file, configure with --enable-generate-docs, and rebuild BIND 10 > $@
endif
EXTRA_DIST += stats-httpd-xml.tpl stats-httpd-xsd.tpl stats-httpd-xsl.tpl
EXTRA_DIST += stats_messages.mes stats_httpd_messages.mes
-if ENABLE_MAN
+if GENERATE_DOCS
b10-stats.8: b10-stats.xml
@XSLTPROC@ --novalid --xinclude --nonet -o $@ http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $(srcdir)/b10-stats.xml
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 > $@
+ @echo Man generation disabled. Creating dummy $@. Configure with --enable-generate-docs to enable it.
+ @echo Man generation disabled. Remove this file, configure with --enable-generate-docs, and rebuild BIND 10 > $@
endif
CLEANFILES += $(man_MANS)
EXTRA_DIST = $(man_MANS) b10-cmdctl-usermgr.xml
-if ENABLE_MAN
+if GENERATE_DOCS
b10-cmdctl-usermgr.8: b10-cmdctl-usermgr.xml
@XSLTPROC@ --novalid --xinclude --nonet -o $@ http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $(srcdir)/b10-cmdctl-usermgr.xml
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 > $@
+ @echo Man generation disabled. Creating dummy $@. Configure with --enable-generate-docs to enable it.
+ @echo Man generation disabled. Remove this file, configure with --enable-generate-docs, and rebuild BIND 10 > $@
endif
EXTRA_DIST = $(man_MANS) b10-xfrin.xml
EXTRA_DIST += xfrin.spec xfrin_messages.mes
-if ENABLE_MAN
+if GENERATE_DOCS
b10-xfrin.8: b10-xfrin.xml
@XSLTPROC@ --novalid --xinclude --nonet -o $@ http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $(srcdir)/b10-xfrin.xml
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 > $@
+ @echo Man generation disabled. Creating dummy $@. Configure with --enable-generate-docs to enable it.
+ @echo Man generation disabled. Remove this file, configure with --enable-generate-docs, and rebuild BIND 10 > $@
endif
CLEANFILES += $(man_MANS)
EXTRA_DIST = $(man_MANS) b10-xfrout.xml xfrout_messages.mes
-if ENABLE_MAN
+if GENERATE_DOCS
b10-xfrout.8: b10-xfrout.xml
@XSLTPROC@ --novalid --xinclude --nonet -o $@ http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $(srcdir)/b10-xfrout.xml
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 > $@
+ @echo Man generation disabled. Creating dummy $@. Configure with --enable-generate-docs to enable it.
+ @echo Man generation disabled. Remove this file, configure with --enable-generate-docs, and rebuild BIND 10 > $@
endif
CLEANFILES += $(man_MANS)
EXTRA_DIST = $(man_MANS) b10-zonemgr.xml zonemgr_messages.mes
-if ENABLE_MAN
+if GENERATE_DOCS
b10-zonemgr.8: b10-zonemgr.xml
@XSLTPROC@ --novalid --xinclude --nonet -o $@ http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $(srcdir)/b10-zonemgr.xml
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 > $@
+ @echo Man generation disabled. Creating dummy $@. Configure with --enable-generate-docs to enable it.
+ @echo Man generation disabled. Remove this file, configure with --enable-generate-docs, and rebuild BIND 10 > $@
endif