Makefile.sphinx:17: The 'sphinx-build' command was not found
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.
Jonathan Corbet
maintainerQuoted 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.sphinxfor that target?
That seems like a reasonable request, we'll make it happen.
Thanks,
jon
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.sphinxfor 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
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.
--- Documentation/Makefile.sphinx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
Documentation/Makefile.sphinx +2 -2
@@ -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
Jonathan Corbet
maintainerRe: [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_SPHINXcheck, overriding the .DEFAULT rule for HAVE_SPHINX=0.
I've applied this, will send it upward soonish.
Thanks,
jon