Documentation/sphinx: skip build if user requested specific DOCBOOKS
authorJani Nikula <jani.nikula@intel.com>
Fri, 1 Jul 2016 12:24:44 +0000 (15:24 +0300)
committerJonathan Corbet <corbet@lwn.net>
Fri, 1 Jul 2016 22:16:07 +0000 (16:16 -0600)
If the user requested specific DocBooks to be built using 'make
DOCBOOKS=foo.xml htmldocs', assume no Sphinx build is desired. This
check is transitional, and can be removed once we drop the DocBook
build.

Cc: Markus Heiser <markus.heiser@darmarit.de>
Cc: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Fixes: 22cba31bae9d ("Documentation/sphinx: add basic working Sphinx configuration and build")
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Documentation/Makefile.sphinx

index 6c203745b6c6c92f0997b216b81d69986d81313f..d8d13c92a1789eb89422fa3397e4e2953d15d765 100644 (file)
@@ -17,6 +17,12 @@ ifeq ($(HAVE_SPHINX),0)
        $(warning The '$(SPHINXBUILD)' command was not found. Make sure you have Sphinx installed and in PATH, or set the SPHINXBUILD make variable to point to the full path of the '$(SPHINXBUILD)' executable.)
        @echo "  SKIP    Sphinx $@ target."
 
+else ifneq ($(DOCBOOKS),)
+
+# Skip Sphinx build if the user explicitly requested DOCBOOKS.
+.DEFAULT:
+       @echo "  SKIP    Sphinx $@ target (DOCBOOKS specified)."
+
 else # HAVE_SPHINX
 
 # User-friendly check for rst2pdf