]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[1687] makefile updates, mostly to generate dummy manpage if not enabled
authorJeremy C. Reed <jreed@ISC.org>
Thu, 2 Aug 2012 22:59:46 +0000 (17:59 -0500)
committerJeremy C. Reed <jreed@ISC.org>
Thu, 2 Aug 2012 22:59:46 +0000 (17:59 -0500)
19 files changed:
src/bin/auth/Makefile.am
src/bin/bindctl/Makefile.am
src/bin/cfgmgr/Makefile.am
src/bin/cmdctl/Makefile.am
src/bin/dbutil/Makefile.am
src/bin/ddns/Makefile.am
src/bin/dhcp4/Makefile.am
src/bin/dhcp6/Makefile.am
src/bin/host/Makefile.am
src/bin/loadzone/Makefile.am
src/bin/msgq/Makefile.am
src/bin/resolver/Makefile.am
src/bin/showtech/Makefile.am
src/bin/sockcreator/Makefile.am
src/bin/stats/Makefile.am
src/bin/usermgr/Makefile.am
src/bin/xfrin/Makefile.am
src/bin/xfrout/Makefile.am
src/bin/zonemgr/Makefile.am

index 1f0fbbf63f94a3b079b856af929a3de6922a5f20..9a6183f7e635f52e9ee17d4e6080469c30199330 100644 (file)
@@ -20,6 +20,7 @@ CLEANFILES  = *.gcno *.gcda auth.spec spec_config.h
 CLEANFILES += auth_messages.h auth_messages.cc
 
 man_MANS = b10-auth.8
+CLEANFILES += $(man_MANS)
 EXTRA_DIST = $(man_MANS) b10-auth.xml
 
 if ENABLE_MAN
@@ -27,6 +28,12 @@ if ENABLE_MAN
 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 > $@
+
 endif
 
 auth.spec: auth.spec.pre
index 52a5145c85d3c7a24cfba8664e47eaf7bf92f053..1e41345a308af5eee6dce4020893dc0e8f234053 100644 (file)
@@ -14,11 +14,18 @@ pythondir = $(pyexecdir)/bindctl
 bindctldir = $(pkgdatadir)
 
 CLEANFILES = bindctl bindctl_main.pyc
+CLEANFILES += $(man_MANS)
 
 if ENABLE_MAN
 
 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
+
+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 > $@
 
 endif
 
index aee78cf99561008ede1484f82d5c727d4f18efcb..99feed564edc5a58ea2b35d4eb1b0ddc5d763ada 100644 (file)
@@ -10,12 +10,19 @@ b10_cfgmgrdir = @localstatedir@/@PACKAGE@
 #B10_cfgmgr_DATA = 
 
 man_MANS = b10-cfgmgr.8
+CLEANFILES += $(man_MANS)
 EXTRA_DIST = $(man_MANS) b10-cfgmgr.xml
 
 if ENABLE_MAN
 
 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
+
+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 > $@
 
 endif
 
index e302fa6b87b629e4b13983bec3802a26d3ae6e67..e115366587a741bc2177e7702d4c0bf529ab5288 100644 (file)
@@ -26,6 +26,7 @@ CLEANFILES += $(PYTHON_LOGMSGPKG_DIR)/work/cmdctl_messages.py
 CLEANFILES += $(PYTHON_LOGMSGPKG_DIR)/work/cmdctl_messages.pyc
 
 man_MANS = b10-cmdctl.8
+CLEANFILES += $(man_MANS)
 EXTRA_DIST += $(man_MANS) b10-cmdctl.xml cmdctl_messages.mes
 
 if ENABLE_MAN
@@ -33,6 +34,12 @@ if ENABLE_MAN
 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 > $@
+
 endif
 
 cmdctl.spec: cmdctl.spec.pre
index e05055f8f9b0f6b6c7c51f92adbc67ae4b5a2b69..0d1b3666f5a6e47c49707de2c265c1eadff5e7a6 100644 (file)
@@ -14,12 +14,19 @@ CLEANFILES = b10-dbutil b10-dbutil.pyc
 CLEANFILES += $(PYTHON_LOGMSGPKG_DIR)/work/dbutil_messages.py
 CLEANFILES += $(PYTHON_LOGMSGPKG_DIR)/work/dbutil_messages.pyc
 CLEANFILES += $(PYTHON_LOGMSGPKG_DIR)/work/dbutil_messages.pyo
+CLEANFILES += $(man_MANS)
 
 if ENABLE_MAN
 
 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 > $@
+
 endif
 
 # Define rule to build logging source files from message file
index 0b014cb1adc0e653c855d23180f253065a720d6a..fa2a2ce2f1ec6fac3466998ac13a3228a35a4a17 100644 (file)
@@ -15,7 +15,9 @@ CLEANFILES += $(PYTHON_LOGMSGPKG_DIR)/work/ddns_messages.py
 CLEANFILES += $(PYTHON_LOGMSGPKG_DIR)/work/ddns_messages.pyc
 
 EXTRA_DIST =  ddns_messages.mes ddns.spec
+
 man_MANS = b10-ddns.8
+CLEANFILES += $(man_MANS)
 EXTRA_DIST += $(man_MANS) b10-ddns.xml
 
 if ENABLE_MAN
@@ -23,6 +25,12 @@ if ENABLE_MAN
 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 > $@
+
 endif
 
 # Define rule to build logging source files from message file
index d343633c75d3f9f0b9aeceb3a668700640cb56df..5afffcab303b34f6ed4f9327496cfa53883f212a 100644 (file)
@@ -15,6 +15,7 @@ pkglibexecdir = $(libexecdir)/@PACKAGE@
 CLEANFILES = spec_config.h
 
 man_MANS = b10-dhcp4.8
+CLEANFILES += $(man_MANS)
 EXTRA_DIST = $(man_MANS) b10-dhcp4.xml dhcp4.spec
 
 if ENABLE_MAN
@@ -22,6 +23,13 @@ b10-dhcp4.8: b10-dhcp4.xml
        xsltproc --novalid --xinclude --nonet -o $@ \
         http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl \
        $(srcdir)/b10-dhcp4.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 > $@
+
 endif
 
 spec_config.h: spec_config.h.pre
index 16b17eddf802f5c8c50ba9f46ad885a0b3f97a2f..8cd76196ff437c9cd7aff7913a443d599a9b5823 100644 (file)
@@ -16,6 +16,7 @@ pkglibexecdir = $(libexecdir)/@PACKAGE@
 CLEANFILES = spec_config.h
 
 man_MANS = b10-dhcp6.8
+CLEANFILES += $(man_MANS)
 EXTRA_DIST = $(man_MANS) b10-dhcp6.xml dhcp6.spec
 
 if ENABLE_MAN
@@ -24,6 +25,13 @@ b10-dhcp6.8: b10-dhcp6.xml
        xsltproc --novalid --xinclude --nonet -o $@ \
         http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl \
         $(srcdir)/b10-dhcp6.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 > $@
+
 endif
 
 spec_config.h: spec_config.h.pre
index a8f96c21fe9b829431b4ff0e9b4c09626f010166..d9ee9a7e08771e2ebda75cb33c18c1824fc3b4b7 100644 (file)
@@ -17,6 +17,7 @@ b10_host_LDADD += $(top_builddir)/src/lib/util/libutil.la
 b10_host_LDADD += $(top_builddir)/src/lib/exceptions/libexceptions.la
 
 man_MANS = b10-host.1
+CLEANFILES += $(man_MANS)
 EXTRA_DIST = $(man_MANS) b10-host.xml
 
 .PHONY: man
@@ -27,4 +28,10 @@ man: b10-host.1
 b10-host.1: b10-host.xml
        xsltproc --novalid --xinclude --nonet -o $@ http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $(srcdir)/b10-host.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 > $@
+
 endif
index a235d68bd046b479166a33deb345b309eac2ebbf..9478b208d51a4eb430874baedbbb13976fba2056 100644 (file)
@@ -5,6 +5,7 @@ noinst_SCRIPTS = run_loadzone.sh
 CLEANFILES = b10-loadzone
 
 man_MANS = b10-loadzone.8
+CLEANFILES += $(man_MANS)
 EXTRA_DIST = $(man_MANS) b10-loadzone.xml
 
 if ENABLE_MAN
@@ -12,6 +13,12 @@ if ENABLE_MAN
 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 > $@
+
 endif
 
 b10-loadzone: b10-loadzone.py
index 908cab5dfd49451353c4580a7c414b48d3235384..6b137ba61f6f89ec9ebb30cc9ace8a96043a669a 100644 (file)
@@ -7,6 +7,7 @@ pkglibexec_SCRIPTS = b10-msgq
 CLEANFILES = b10-msgq msgq.pyc
 
 man_MANS = b10-msgq.8
+CLEANFILES += $(man_MANS)
 EXTRA_DIST = $(man_MANS) msgq.xml
 
 if ENABLE_MAN
@@ -14,6 +15,12 @@ if ENABLE_MAN
 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 > $@
+
 endif
 
 # this is done here since configure.ac AC_OUTPUT doesn't expand exec_prefix
index 2bb3768aba8b6e9ae69dcc5ba7774fbdc25503cd..ace01ea48a57f6bb5dc873f5ea52403d1f2d374d 100644 (file)
@@ -23,6 +23,7 @@ CLEANFILES += resolver.spec spec_config.h
 CLEANFILES += resolver_messages.cc resolver_messages.h
 
 man_MANS = b10-resolver.8
+CLEANFILES += $(man_MANS)
 EXTRA_DIST = $(man_MANS) b10-resolver.xml resolver_messages.mes
 
 if ENABLE_MAN
@@ -30,6 +31,12 @@ if ENABLE_MAN
 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 > $@
+
 endif
 
 resolver.spec: resolver.spec.pre
index cc9923c884f89ca87f5e41d0949e63e181b36763..ae8118dab9814c9c2add0d87779184b061f85c4f 100644 (file)
@@ -12,12 +12,19 @@ MAN1_FILES = \
 
 man_MANS = \
        $(MAN1_FILES:.xml=.1)
+CLEANFILES += $(man_MANS)
 
 if ENABLE_MAN
 
 .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 > $@
+
 endif
 
 EXTRA_DIST = $(man_MANS) $(MAN1_FILES)
index 6ac494f92a58366cdcc990e069015e684e59805b..72094f9555a1f108ce0e75122010deb69589a99b 100644 (file)
@@ -13,6 +13,7 @@ pkglibexecdir = $(libexecdir)/@PACKAGE@
 CLEANFILES = *.gcno *.gcda
 
 man_MANS = b10-sockcreator.8
+CLEANFILES += $(man_MANS)
 EXTRA_DIST = $(man_MANS) b10-sockcreator.xml
 
 if ENABLE_MAN
@@ -20,6 +21,12 @@ if ENABLE_MAN
 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 > $@
+
 endif
 
 pkglibexec_PROGRAMS = b10-sockcreator
index 63e2a3b38b706ad5ab8cec2a59b9e4bd907738a5..60410a69a2daa541e88d1de9f61a741e4fe33a91 100644 (file)
@@ -20,6 +20,7 @@ CLEANFILES += $(PYTHON_LOGMSGPKG_DIR)/work/stats_httpd_messages.py
 CLEANFILES += $(PYTHON_LOGMSGPKG_DIR)/work/stats_httpd_messages.pyc
 
 man_MANS = b10-stats.8 b10-stats-httpd.8
+CLEANFILES += $(man_MANS)
 EXTRA_DIST = $(man_MANS) b10-stats.xml b10-stats-httpd.xml
 EXTRA_DIST += stats.spec stats-httpd.spec
 EXTRA_DIST += stats-httpd-xml.tpl stats-httpd-xsd.tpl stats-httpd-xsl.tpl
@@ -33,6 +34,12 @@ b10-stats.8: b10-stats.xml
 b10-stats-httpd.8: b10-stats-httpd.xml
        xsltproc --novalid --xinclude --nonet -o $@ http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $(srcdir)/b10-stats-httpd.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 > $@
+
 endif
 
 $(PYTHON_LOGMSGPKG_DIR)/work/stats_messages.py : stats_messages.mes
index 7ebb1cd6c2d560f9b44555d101fd96869de895bd..5f427ace841a8e6f581404786dafbc48ae602f67 100644 (file)
@@ -5,6 +5,7 @@ b10_cmdctl_usermgrdir = $(pkgdatadir)
 CLEANFILES=    b10-cmdctl-usermgr
 
 man_MANS = b10-cmdctl-usermgr.8
+CLEANFILES += $(man_MANS)
 EXTRA_DIST = $(man_MANS) b10-cmdctl-usermgr.xml
 
 if ENABLE_MAN
@@ -12,6 +13,12 @@ if ENABLE_MAN
 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 > $@
+
 endif
 
 # this is done here since configure.ac AC_OUTPUT doesn't expand exec_prefix
index 8d80b220fb130330c10d359d29be78b5efe1eaaf..091be9bcdb8a77d8e630316f09733444fc693d0f 100644 (file)
@@ -15,6 +15,7 @@ CLEANFILES += $(PYTHON_LOGMSGPKG_DIR)/work/xfrin_messages.py
 CLEANFILES += $(PYTHON_LOGMSGPKG_DIR)/work/xfrin_messages.pyc
 
 man_MANS = b10-xfrin.8
+CLEANFILES += $(man_MANS)
 EXTRA_DIST = $(man_MANS) b10-xfrin.xml
 EXTRA_DIST += xfrin.spec xfrin_messages.mes
 
@@ -23,6 +24,12 @@ if ENABLE_MAN
 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 > $@
+
 endif
 
 # Define rule to build logging source files from message file
index 6100e64bf7e3986b4e65fefb3d46dfa05227f879..8adec7f73f3751fa7e10c51d12413d3b2907cf55 100644 (file)
@@ -15,6 +15,7 @@ CLEANFILES += $(PYTHON_LOGMSGPKG_DIR)/work/xfrout_messages.py
 CLEANFILES += $(PYTHON_LOGMSGPKG_DIR)/work/xfrout_messages.pyc
 
 man_MANS = b10-xfrout.8
+CLEANFILES += $(man_MANS)
 EXTRA_DIST = $(man_MANS) b10-xfrout.xml xfrout_messages.mes
 
 if ENABLE_MAN
@@ -22,6 +23,12 @@ if ENABLE_MAN
 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 > $@
+
 endif
 
 # Define rule to build logging source files from message file
index aa427fdf2ec5e74c89d29a537c9ae79209a76aff..8244fb6dc961559a64fac4cac105b181b16adc8f 100644 (file)
@@ -15,6 +15,7 @@ CLEANFILES += $(PYTHON_LOGMSGPKG_DIR)/work/zonemgr_messages.py
 CLEANFILES += $(PYTHON_LOGMSGPKG_DIR)/work/zonemgr_messages.pyc
 
 man_MANS = b10-zonemgr.8
+CLEANFILES += $(man_MANS)
 EXTRA_DIST = $(man_MANS) b10-zonemgr.xml zonemgr_messages.mes
 
 if ENABLE_MAN
@@ -22,6 +23,12 @@ if ENABLE_MAN
 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 > $@
+
 endif
 
 # Build logging source file from message files