summaryrefslogtreecommitdiffstats
path: root/doc/manpages
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@cumulusnetworks.com>2018-03-06 16:33:21 +0100
committerQuentin Young <qlyoung@cumulusnetworks.com>2018-03-06 16:33:21 +0100
commite207a4b589a489649cdb06b2c824dc6948158b21 (patch)
tree1e282bb58e16d5e32390c89ea8b21a04cefffbfc /doc/manpages
parentdoc: allow env var to ovveride sphinx defaults (diff)
downloadfrr-e207a4b589a489649cdb06b2c824dc6948158b21.tar.xz
frr-e207a4b589a489649cdb06b2c824dc6948158b21.zip
doc: prevent `clean` target from building manpages
Unconditional automake subdirectory flag = 'man' causes manpages to always be built regardless of target, which is undesirable for `clean`. Remove unconditional flag and override automake targets that need to build manpages instead. Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'doc/manpages')
-rw-r--r--doc/manpages/Makefile17
1 files changed, 13 insertions, 4 deletions
diff --git a/doc/manpages/Makefile b/doc/manpages/Makefile
index 3f0c8f55a..33a3af1f1 100644
--- a/doc/manpages/Makefile
+++ b/doc/manpages/Makefile
@@ -2,14 +2,17 @@
#
# You can set these variables from the command line.
-SPHINXOPTS =
-SPHINXBUILD = sphinx-build
-PAPER =
+SPHINXOPTS ?=
+SPHINXBUILD ?= sphinx-build
+PAPER ?=
BUILDDIR = _build
# User-friendly check for sphinx-build
ifeq ($(shell which $(SPHINXBUILD) >/dev/null 2>&1; echo $$?), 1)
-$(error The '$(SPHINXBUILD)' command was not found. Make sure you have Sphinx installed, then set the SPHINXBUILD environment variable to point to the full path of the '$(SPHINXBUILD)' executable. Alternatively you can add the directory with the executable to your PATH. If you don't have Sphinx installed, grab it from http://sphinx-doc.org/)
+SPHINXBUILD = sphinx-1.0-build
+endif
+ifeq ($(shell which $(SPHINXBUILD) >/dev/null 2>&1; echo $$?), 1)
+$(error "The '$(SPHINXBUILD)' command was not found. Make sure you have Sphinx installed, then set the SPHINXBUILD make variable to point to the full path of the '$(SPHINXBUILD)' executable. Alternatively you can add the directory with the executable to your PATH. If you don't have Sphinx installed, grab it from http://sphinx-doc.org/")
endif
# Internal variables.
@@ -215,4 +218,10 @@ pseudoxml:
@echo
@echo "Build finished. The pseudo-XML files are in $(BUILDDIR)/pseudoxml."
+.PHONY: install-data
+install-data: man
+
+.PHONY: all
+all: install-data
+
%: ;