Skip to contentSkip to conversation

Makefile.sphinx:17: The 'sphinx-build' command was not found

PATCH In review Christian Kujau 3 participants 5 messages Jul 28, 2016 – Aug 3, 2016 Documentation

lore
Share & tools
lore
#0 lore raw

Hi,

since 22cba31bae ("Documentation/sphinx: add basic working Sphinx configuration and build") the following warning is emitted when running "make help":

$ make help > /dev/null 
Documentation/Makefile.sphinx:17: The 'sphinx-build' 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 'sphinx-build' 
executable.

Indeed, I don't have "sphinx-build" installed (nor do I want to build documentation), running "make SPHINXBUILD=/bin/true help" makes the warning go away. Is there a way to omit the warning when running "make help"? E.g. by not including Documentation/Makefile.sphinx for that target?

Thanks,
Christian.

Signature · 3 lines
BOFH excuse #296:

The hardware bus needs a new token.
maintainer
#1 lore raw
Quoted 5 lines · On Thu, 28 Jul 2016 15:05:07 -0700 (PDT) Christian Kujau…

Indeed, I don't have "sphinx-build" installed (nor do I want to build documentation), running "make SPHINXBUILD=/bin/true help" makes the warning go away. Is there a way to omit the warning when running "make help"? E.g. by not including Documentation/Makefile.sphinx for that target?

That seems like a reasonable request, we'll make it happen.

Thanks,

jon

#2 lore raw
Quoted 10 lines · Jonathan Corbet
Quoted 5 lines · On Thu, 28 Jul 2016 15:05:07 -0700 (PDT) Christian Kujau…

Indeed, I don't have "sphinx-build" installed (nor do I want to build documentation), running "make SPHINXBUILD=/bin/true help" makes the warning go away. Is there a way to omit the warning when running "make help"? E.g. by not including Documentation/Makefile.sphinx for that target?

That seems like a reasonable request, we'll make it happen.

I think we should still display the help (without warnings!) even if the tool is not available. Patch follows.

BR,
Jani.

Signature · 1 line
Jani Nikula, Intel Open Source Technology Center
#3 lore raw

PATCH 1/1 Documentation/sphinx: do not warn about missing tools in 'make help'

Simply move the dochelp rule outside of the HAVE_SPHINX check, overriding the .DEFAULT rule for HAVE_SPHINX=0.

Cc Jonathan Corbet <[email protected]>
Cc Christian Kujau <[email protected]>
---
 Documentation/Makefile.sphinx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Documentation/Makefile.sphinx +2 -2
index d8d13c92a178..bcb07f8dc664 100644
@@ -67,6 +67,8 @@ cleanmediadocs:
 cleandocs:
 	$(Q)rm -rf $(BUILDDIR)
 
+endif # HAVE_SPHINX
+
 dochelp:
 	@echo  ' Linux kernel internal documentation in different formats (Sphinx):'
 	@echo  '  htmldocs        - HTML'
@@ -74,5 +76,3 @@ dochelp:
 	@echo  '  epubdocs        - EPUB'
 	@echo  '  xmldocs         - XML'
 	@echo  '  cleandocs       - clean all generated files'
-
-endif # HAVE_SPHINX
Signature · 1 line
2.1.4
maintainer
#4 lore raw

Re: [PATCH] Documentation/sphinx: do not warn about missing tools in 'make help'

Quoted 2 lines · On Mon, 1 Aug 2016 12:37:05 +0300 Jani Nikula <[email protected]> wrote:

Simply move the dochelp rule outside of the HAVE_SPHINX check, overriding the .DEFAULT rule for HAVE_SPHINX=0.

I've applied this, will send it upward soonish.

Thanks,

jon