Browse Source

Only regenerate manual pages if configure is ran with --enable-man.

git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1510 e5f2f494-b856-4b98-b285-d166d9295462
Jeremy C. Reed 15 years ago
parent
commit
a9de0fa6a2

+ 4 - 1
configure.ac

@@ -251,7 +251,10 @@ PKG_CHECK_MODULES(SQLITE, sqlite3 >= 3.3.9)
 AC_CHECK_HEADERS([boost/shared_ptr.hpp],,
 AC_CHECK_HEADERS([boost/shared_ptr.hpp],,
   AC_MSG_ERROR([Missing required header files.]))
   AC_MSG_ERROR([Missing required header files.]))
 
 
-# Checks for library functions.
+AC_ARG_ENABLE(man, [AC_HELP_STRING([--enable-man],
+  [regenerate man pages [default=no]])] ,enable_man=yes, enable_man=no)
+
+AM_CONDITIONAL(ENABLE_MAN, test x$enable_man != xno)
 
 
 AC_CONFIG_FILES([Makefile
 AC_CONFIG_FILES([Makefile
                  src/Makefile
                  src/Makefile

+ 4 - 0
src/bin/auth/Makefile.am

@@ -14,9 +14,13 @@ CLEANFILES = *.gcno *.gcda
 man_MANS = b10-auth.8
 man_MANS = b10-auth.8
 EXTRA_DIST = $(man_MANS) b10-auth.xml
 EXTRA_DIST = $(man_MANS) b10-auth.xml
 
 
+if ENABLE_MAN
+
 b10-auth.8: b10-auth.xml
 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
 	xsltproc --novalid --xinclude --nonet -o $@ http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $(srcdir)/b10-auth.xml
 
 
+endif
+
 pkglibexec_PROGRAMS = b10-auth
 pkglibexec_PROGRAMS = b10-auth
 b10_auth_SOURCES = auth_srv.cc auth_srv.h
 b10_auth_SOURCES = auth_srv.cc auth_srv.h
 b10_auth_SOURCES += common.h
 b10_auth_SOURCES += common.h

+ 4 - 0
src/bin/bind10/Makefile.am

@@ -10,9 +10,13 @@ EXTRA_DIST = bob.spec
 man_MANS = bind10.8
 man_MANS = bind10.8
 EXTRA_DIST += $(man_MANS) bind10.xml
 EXTRA_DIST += $(man_MANS) bind10.xml
 
 
+if ENABLE_MAN
+
 bind10.8: bind10.xml
 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 
 
 
+endif
+
 # TODO: does this need $$(DESTDIR) also?
 # TODO: does this need $$(DESTDIR) also?
 # this is done here since configure.ac AC_OUTPUT doesn't expand exec_prefix
 # this is done here since configure.ac AC_OUTPUT doesn't expand exec_prefix
 bind10: bind10.py
 bind10: bind10.py

+ 4 - 0
src/bin/bindctl/Makefile.am

@@ -12,9 +12,13 @@ EXTRA_DIST += bindctl.pem
 
 
 CLEANFILES = bindctl
 CLEANFILES = bindctl
 
 
+if ENABLE_MAN
+
 bindctl.1: bindctl.xml
 bindctl.1: bindctl.xml
 	xsltproc --novalid --xinclude --nonet -o $@ http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $(srcdir)/bindctl.xml
 	xsltproc --novalid --xinclude --nonet -o $@ http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $(srcdir)/bindctl.xml
 
 
+endif
+
 bindctl: bindctl-source.py
 bindctl: bindctl-source.py
 	$(SED) -e "s|@@PYTHONPATH@@|@pyexecdir@|" \
 	$(SED) -e "s|@@PYTHONPATH@@|@pyexecdir@|" \
 	       -e "s|@@SYSCONFDIR@@|@sysconfdir@|" \
 	       -e "s|@@SYSCONFDIR@@|@sysconfdir@|" \

+ 4 - 0
src/bin/cfgmgr/Makefile.am

@@ -10,9 +10,13 @@ b10_cfgmgrdir = @localstatedir@/@PACKAGE@
 man_MANS = b10-cfgmgr.8
 man_MANS = b10-cfgmgr.8
 EXTRA_DIST = $(man_MANS) b10-cfgmgr.xml
 EXTRA_DIST = $(man_MANS) b10-cfgmgr.xml
 
 
+if ENABLE_MAN
+
 b10-cfgmgr.8: b10-cfgmgr.xml
 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
 	xsltproc --novalid --xinclude --nonet -o $@ http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $(srcdir)/b10-cfgmgr.xml
 
 
+endif
+
 # TODO: does this need $$(DESTDIR) also?
 # TODO: does this need $$(DESTDIR) also?
 # this is done here since configure.ac AC_OUTPUT doesn't expand exec_prefix
 # this is done here since configure.ac AC_OUTPUT doesn't expand exec_prefix
 b10-cfgmgr: b10-cfgmgr.py
 b10-cfgmgr: b10-cfgmgr.py

+ 4 - 0
src/bin/cmdctl/Makefile.am

@@ -19,9 +19,13 @@ CLEANFILES=	b10-cmdctl
 man_MANS = b10-cmdctl.8
 man_MANS = b10-cmdctl.8
 EXTRA_DIST += $(man_MANS) b10-cmdctl.xml
 EXTRA_DIST += $(man_MANS) b10-cmdctl.xml
 
 
+if ENABLE_MAN
+
 b10-cmdctl.8: b10-cmdctl.xml
 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
 	xsltproc --novalid --xinclude --nonet -o $@ http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $(srcdir)/b10-cmdctl.xml
 
 
+endif
+
 # TODO: does this need $$(DESTDIR) also?
 # TODO: does this need $$(DESTDIR) also?
 # this is done here since configure.ac AC_OUTPUT doesn't expand exec_prefix
 # this is done here since configure.ac AC_OUTPUT doesn't expand exec_prefix
 b10-cmdctl: cmdctl.py
 b10-cmdctl: cmdctl.py

+ 4 - 0
src/bin/host/Makefile.am

@@ -12,5 +12,9 @@ host_LDADD += $(top_builddir)/src/lib/exceptions/.libs/libexceptions.a
 #man_MANS = host.1
 #man_MANS = host.1
 #EXTRA_DIST = $(man_MANS) host.xml
 #EXTRA_DIST = $(man_MANS) host.xml
 #
 #
+#if ENABLE_MAN
+#
 #host.1: host.xml
 #host.1: host.xml
 #	xsltproc --novalid --xinclude --nonet -o $@ http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $(srcdir)/host.xml
 #	xsltproc --novalid --xinclude --nonet -o $@ http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $(srcdir)/host.xml
+#
+#endif

+ 4 - 0
src/bin/loadzone/Makefile.am

@@ -5,9 +5,13 @@ CLEANFILES = b10-loadzone
 man_MANS = b10-loadzone.8
 man_MANS = b10-loadzone.8
 EXTRA_DIST = $(man_MANS) b10-loadzone.xml
 EXTRA_DIST = $(man_MANS) b10-loadzone.xml
 
 
+if ENABLE_MAN
+
 b10-loadzone.8: b10-loadzone.xml
 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
 	xsltproc --novalid --xinclude --nonet -o $@ http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $(srcdir)/b10-loadzone.xml
 
 
+endif
+
 b10-loadzone: b10-loadzone.py
 b10-loadzone: b10-loadzone.py
 	$(SED) -e "s|@@PYTHONPATH@@|@pyexecdir@|" \
 	$(SED) -e "s|@@PYTHONPATH@@|@pyexecdir@|" \
 	       -e "s|@@LOCALSTATEDIR@@|$(localstatedir)|" \
 	       -e "s|@@LOCALSTATEDIR@@|$(localstatedir)|" \

+ 4 - 0
src/bin/msgq/Makefile.am

@@ -7,9 +7,13 @@ CLEANFILES = msgq
 man_MANS = msgq.8
 man_MANS = msgq.8
 EXTRA_DIST = $(man_MANS) msgq.xml
 EXTRA_DIST = $(man_MANS) msgq.xml
 
 
+if ENABLE_MAN
+
 msgq.8: msgq.xml
 msgq.8: msgq.xml
 	xsltproc --novalid --xinclude --nonet -o $@ http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $(srcdir)/msgq.xml
 	xsltproc --novalid --xinclude --nonet -o $@ http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $(srcdir)/msgq.xml
 
 
+endif
+
 # TODO: does this need $$(DESTDIR) also?
 # TODO: does this need $$(DESTDIR) also?
 # this is done here since configure.ac AC_OUTPUT doesn't expand exec_prefix
 # this is done here since configure.ac AC_OUTPUT doesn't expand exec_prefix
 msgq: msgq.py
 msgq: msgq.py

+ 4 - 0
src/bin/usermgr/Makefile.am

@@ -7,9 +7,13 @@ CLEANFILES=	b10-cmdctl-usermgr
 man_MANS = b10-cmdctl-usermgr.8
 man_MANS = b10-cmdctl-usermgr.8
 EXTRA_DIST = $(man_MANS) b10-cmdctl-usermgr.xml
 EXTRA_DIST = $(man_MANS) b10-cmdctl-usermgr.xml
 
 
+if ENABLE_MAN
+
 b10-cmdctl-usermgr.8: b10-cmdctl-usermgr.xml
 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
 	xsltproc --novalid --xinclude --nonet -o $@ http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $(srcdir)/b10-cmdctl-usermgr.xml
 
 
+endif
+
 # TODO: does this need $$(DESTDIR) also?
 # TODO: does this need $$(DESTDIR) also?
 # this is done here since configure.ac AC_OUTPUT doesn't expand exec_prefix
 # this is done here since configure.ac AC_OUTPUT doesn't expand exec_prefix
 b10-cmdctl-usermgr: b10-cmdctl-usermgr.py
 b10-cmdctl-usermgr: b10-cmdctl-usermgr.py

+ 4 - 0
src/bin/xfrin/Makefile.am

@@ -12,9 +12,13 @@ CLEANFILES=	b10-xfrin
 man_MANS = b10-xfrin.8
 man_MANS = b10-xfrin.8
 EXTRA_DIST += $(man_MANS) b10-xfrin.xml
 EXTRA_DIST += $(man_MANS) b10-xfrin.xml
 
 
+if ENABLE_MAN
+
 b10-xfrin.8: b10-xfrin.xml
 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
 	xsltproc --novalid --xinclude --nonet -o $@ http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $(srcdir)/b10-xfrin.xml
 
 
+endif
+
 # TODO: does this need $$(DESTDIR) also?
 # TODO: does this need $$(DESTDIR) also?
 # this is done here since configure.ac AC_OUTPUT doesn't expand exec_prefix
 # this is done here since configure.ac AC_OUTPUT doesn't expand exec_prefix
 b10-xfrin: xfrin.py
 b10-xfrin: xfrin.py