Skip to content

Commit 6387872

Browse files
jnikulaJonathan Corbet
authored andcommitted
Documentation/sphinx: skip build if user requested specific DOCBOOKS
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 <[email protected]> Cc: Mauro Carvalho Chehab <[email protected]> Fixes: 22cba31 ("Documentation/sphinx: add basic working Sphinx configuration and build") Signed-off-by: Jani Nikula <[email protected]> Signed-off-by: Jonathan Corbet <[email protected]>
1 parent a569bf6 commit 6387872

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Documentation/Makefile.sphinx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@ ifeq ($(HAVE_SPHINX),0)
1717
$(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.)
1818
@echo " SKIP Sphinx $@ target."
1919

20+
else ifneq ($(DOCBOOKS),)
21+
22+
# Skip Sphinx build if the user explicitly requested DOCBOOKS.
23+
.DEFAULT:
24+
@echo " SKIP Sphinx $@ target (DOCBOOKS specified)."
25+
2026
else # HAVE_SPHINX
2127

2228
# User-friendly check for rst2pdf

0 commit comments

Comments
 (0)