Commit 28575abd authored by Ondřej Surý's avatar Ondřej Surý

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.
parent b1093533
......@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment