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:
Ondřej Surý 2020-06-22 13:08:58 +02:00
parent b1093533ef
commit 28575abd93

View 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