]> git.puffer.fish Git - mirror/frr.git/commitdiff
doc: prevent `clean` target from building manpages
authorQuentin Young <qlyoung@cumulusnetworks.com>
Tue, 6 Mar 2018 15:33:21 +0000 (10:33 -0500)
committerQuentin Young <qlyoung@cumulusnetworks.com>
Tue, 6 Mar 2018 15:33:21 +0000 (10:33 -0500)
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>
doc/Makefile.am
doc/developer/Makefile
doc/manpages/Makefile
doc/user/Makefile

index d8244edca45be497395cf113eac3af84d5686ed0..4a9b0525a505447af5d4530e5737e070c5867fa8 100644 (file)
@@ -2,7 +2,6 @@
 
 # Tell Automake to invoke 'make' in the manpages directory with argument 'man'
 SUBDIRS = manpages
-AM_MAKEFLAGS = man
 
 MANPAGE_BUILDDIR = manpages/_build/man
 
index f5e7cb60ec09878bfc3448283f30769b3b2b3e87..f5aca7a65512a8c2578bc2560caa3fa0b5e03b44 100644 (file)
@@ -12,7 +12,7 @@ ifeq ($(shell which $(SPHINXBUILD) >/dev/null 2>&1; echo $$?), 1)
 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/)
+$(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.
index 3f0c8f55aec8f80cc54161863fcc8aa5b2cfee6d..33a3af1f14461ea661069c81e299c97763b1d2fc 100644 (file)
@@ -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
+
 %: ;
index f5e7cb60ec09878bfc3448283f30769b3b2b3e87..f5aca7a65512a8c2578bc2560caa3fa0b5e03b44 100644 (file)
@@ -12,7 +12,7 @@ ifeq ($(shell which $(SPHINXBUILD) >/dev/null 2>&1; echo $$?), 1)
 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/)
+$(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.