Merge branch 'ben' into docs-next
authorJonathan Corbet <corbet@lwn.net>
Mon, 6 Feb 2017 16:05:31 +0000 (09:05 -0700)
committerJonathan Corbet <corbet@lwn.net>
Mon, 6 Feb 2017 16:05:31 +0000 (09:05 -0700)
Ben writes: "This series fixes some bugs I found in the new doc build system."

1  2 
Documentation/Makefile.sphinx

index fd32fc727777e97359cfed951f03f674f3e69613,e14d82a98062befc25f7fdc5afc04642252eadb6..48b2b0241a3af28caaceac4095f8f82544f9a628
@@@ -54,8 -54,7 +54,8 @@@ loop_cmd = $(echo-cmd) $(cmd_$(1)) || e
  #    e.g. "media" for the linux-tv book-set at ./Documentation/media
  
  quiet_cmd_sphinx = SPHINX  $@ --> file://$(abspath $(BUILDDIR)/$3/$4)
-       cmd_sphinx = $(MAKE) BUILDDIR=$(abspath $(BUILDDIR)) $(build)=Documentation/media $2;\
+       cmd_sphinx = $(MAKE) BUILDDIR=$(abspath $(BUILDDIR)) $(build)=Documentation/media $2 && \
 +      PYTHONDONTWRITEBYTECODE=1 \
        BUILDDIR=$(abspath $(BUILDDIR)) SPHINX_CONF=$(abspath $(srctree)/$(src)/$5/$(SPHINX_CONF)) \
        $(SPHINXBUILD) \
        -b $2 \
@@@ -86,16 -85,11 +86,16 @@@ pdfdocs: latexdoc
  endif # HAVE_PDFLATEX
  
  epubdocs:
-       @$(foreach var,$(SPHINXDIRS),$(call loop_cmd,sphinx,epub,$(var),epub,$(var)))
+       @+$(foreach var,$(SPHINXDIRS),$(call loop_cmd,sphinx,epub,$(var),epub,$(var)))
  
  xmldocs:
-       @$(foreach var,$(SPHINXDIRS),$(call loop_cmd,sphinx,xml,$(var),xml,$(var)))
+       @+$(foreach var,$(SPHINXDIRS),$(call loop_cmd,sphinx,xml,$(var),xml,$(var)))
  
 +endif # HAVE_SPHINX
 +
 +# The following targets are independent of HAVE_SPHINX, and the rules should
 +# work or silently pass without Sphinx.
 +
  # no-ops for the Sphinx toolchain
  sgmldocs:
  psdocs: