]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Rebuild the manpages sources only when in maintainer mode
authorOndřej Surý <ondrej@isc.org>
Mon, 22 Jun 2020 11:08:58 +0000 (13:08 +0200)
committerOndřej Surý <ondrej@isc.org>
Mon, 22 Jun 2020 12:08:53 +0000 (14:08 +0200)
Similarly, the manpage sources will get rebuild only when in maintainer
mode because they require sphinx-build to be available locally and that
might not be always the case.

doc/man/Makefile.am

index 3821376f803bf754f94fcf1093af5313d76f1487..625d0da0e07549a6c2c782fa919826f8511790b7 100644 (file)
@@ -120,12 +120,8 @@ EXTRA_DIST =                               \
        $(MANPAGES_RST)                 \
        $(MANPAGES_IN)
 
-MAINTAINERCLEANFILES =                 \
-       $(MANPAGES_IN)
-
 CLEANFILES =                           \
-       $(man_MANS)                     \
-       manpages.stamp
+       $(man_MANS)
 
 #
 # Build rules for pre-generated manpages
@@ -152,6 +148,14 @@ man: Makefile $(man_MANS)
 clean-local::
        -rm -rf $(SPHINXBUILDDIR)
 
+if MAINTAINER_MODE
+
+CLEANFILES +=                          \
+       manpages.stamp
+
+MAINTAINERCLEANFILES =                 \
+       $(MANPAGES_IN)
+
 #
 # Build rules for generating pre-generated manpages
 #
@@ -196,5 +200,4 @@ $(MANPAGES_IN): manpages.stamp
         fi
 endif HAVE_SPHINX_BUILD
 
-maintainerclean-local:
-       -$(RM)
+endif MAINTAINER_MODE