All of lore.kernel.org
 help / color / mirror / Atom feed
* Makefile.sphinx:17: The 'sphinx-build' command was not found
@ 2016-07-28 22:05 Christian Kujau
  2016-07-29 13:48 ` Jonathan Corbet
  0 siblings, 1 reply; 5+ messages in thread
From: Christian Kujau @ 2016-07-28 22:05 UTC (permalink / raw)
  To: linux-kernel, Jani Nikula

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.
-- 
BOFH excuse #296:

The hardware bus needs a new token.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Makefile.sphinx:17: The 'sphinx-build' command was not found
  2016-07-28 22:05 Makefile.sphinx:17: The 'sphinx-build' command was not found Christian Kujau
@ 2016-07-29 13:48 ` Jonathan Corbet
  2016-08-01  9:34   ` Jani Nikula
  0 siblings, 1 reply; 5+ messages in thread
From: Jonathan Corbet @ 2016-07-29 13:48 UTC (permalink / raw)
  To: Christian Kujau; +Cc: linux-kernel, Jani Nikula

On Thu, 28 Jul 2016 15:05:07 -0700 (PDT)
Christian Kujau <lists@nerdbynature.de> wrote:

> 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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Makefile.sphinx:17: The 'sphinx-build' command was not found
  2016-07-29 13:48 ` Jonathan Corbet
@ 2016-08-01  9:34   ` Jani Nikula
  2016-08-01  9:37     ` [PATCH] Documentation/sphinx: do not warn about missing tools in 'make help' Jani Nikula
  0 siblings, 1 reply; 5+ messages in thread
From: Jani Nikula @ 2016-08-01  9:34 UTC (permalink / raw)
  To: Jonathan Corbet, Christian Kujau; +Cc: linux-kernel

On Fri, 29 Jul 2016, Jonathan Corbet <corbet@lwn.net> wrote:
> On Thu, 28 Jul 2016 15:05:07 -0700 (PDT)
> Christian Kujau <lists@nerdbynature.de> wrote:
>
>> 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.


-- 
Jani Nikula, Intel Open Source Technology Center

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH] Documentation/sphinx: do not warn about missing tools in 'make help'
  2016-08-01  9:34   ` Jani Nikula
@ 2016-08-01  9:37     ` Jani Nikula
  2016-08-03 21:42       ` Jonathan Corbet
  0 siblings, 1 reply; 5+ messages in thread
From: Jani Nikula @ 2016-08-01  9:37 UTC (permalink / raw)
  To: Jani Nikula, Jonathan Corbet, Christian Kujau; +Cc: linux-kernel

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

Cc: Jonathan Corbet <corbet@lwn.net>
Cc: Christian Kujau <lists@nerdbynature.de>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
---
 Documentation/Makefile.sphinx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Documentation/Makefile.sphinx b/Documentation/Makefile.sphinx
index d8d13c92a178..bcb07f8dc664 100644
--- a/Documentation/Makefile.sphinx
+++ b/Documentation/Makefile.sphinx
@@ -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
-- 
2.1.4

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH] Documentation/sphinx: do not warn about missing tools in 'make help'
  2016-08-01  9:37     ` [PATCH] Documentation/sphinx: do not warn about missing tools in 'make help' Jani Nikula
@ 2016-08-03 21:42       ` Jonathan Corbet
  0 siblings, 0 replies; 5+ messages in thread
From: Jonathan Corbet @ 2016-08-03 21:42 UTC (permalink / raw)
  To: Jani Nikula; +Cc: Christian Kujau, linux-kernel

On Mon,  1 Aug 2016 12:37:05 +0300
Jani Nikula <jani.nikula@intel.com> 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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-08-03 22:01 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-28 22:05 Makefile.sphinx:17: The 'sphinx-build' command was not found Christian Kujau
2016-07-29 13:48 ` Jonathan Corbet
2016-08-01  9:34   ` Jani Nikula
2016-08-01  9:37     ` [PATCH] Documentation/sphinx: do not warn about missing tools in 'make help' Jani Nikula
2016-08-03 21:42       ` Jonathan Corbet

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.