mirror of
https://github.com/isc-projects/bind9.git
synced 2026-02-26 03:11:56 -05:00
Rebuild the manpages sources only when in maintainer mode
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.
This commit is contained in:
parent
b1093533ef
commit
28575abd93
1 changed files with 10 additions and 7 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue