Re: [PATCH 1/3] doc-rst: generic way to build PDF of sub-folders
On Wed, 02 Nov 2016, Markus Heiserwrote: > Am 02.11.2016 um 12:43 schrieb Jani Nikula : > >> On Wed, 24 Aug 2016, Markus Heiser wrote: >>> From: Markus Heiser >>> >>> This extends the method to build only sub-folders to the targets >>> "latexdocs" and "pdfdocs". To do so, a conf.py in the sub-folder is >>> required, where the latex_documents of the sub-folder are >>> defined. E.g. to build only gpu's PDF add the following to the >>> Documentation/gpu/conf.py:: >>> >>> +latex_documents = [ >>> +("index", "gpu.tex", "Linux GPU Driver Developer's Guide", >>> + "The kernel development community", "manual"), >>> +] >>> >>> and run: >>> >>> make SPHINXDIRS=gpu pdfdocs >> >> Did you ever try this with more than one subfolder? > > Seems not, there is a ";" missed in the 'foreach' loop, see patch > below. > > To avoid conflicts, can you apply the ";" on your > "Makefile.sphinx improvements" series? / Thanks Thanks, done. http://lkml.kernel.org/r/1478097913-12561-1-git-send-email-jani.nik...@intel.com > > diff --git a/Documentation/Makefile.sphinx b/Documentation/Makefile.sphinx > index 92deea3..b7fbd12 100644 > --- a/Documentation/Makefile.sphinx > +++ b/Documentation/Makefile.sphinx > @@ -76,7 +76,7 @@ endif # HAVE_PDFLATEX > > pdfdocs: latexdocs > ifneq ($(HAVE_PDFLATEX),0) > - $(foreach var,$(SPHINXDIRS), $(MAKE) PDFLATEX=xelatex > LATEXOPTS="-interaction=nonstopmode" -C $(BUILDDIR)/$(var)/latex) > + $(foreach var,$(SPHINXDIRS), $(MAKE) PDFLATEX=xelatex > LATEXOPTS="-interaction=nonstopmode" -C $(BUILDDIR)/$(var)/latex;) > endif # HAVE_PDFLATEX > > epubdocs: > > > --Markus -- > -- Jani Nikula, Intel Open Source Technology Center -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: [PATCH 1/3] doc-rst: generic way to build PDF of sub-folders
Am 02.11.2016 um 12:43 schrieb Jani Nikula: > On Wed, 24 Aug 2016, Markus Heiser wrote: >> From: Markus Heiser >> >> This extends the method to build only sub-folders to the targets >> "latexdocs" and "pdfdocs". To do so, a conf.py in the sub-folder is >> required, where the latex_documents of the sub-folder are >> defined. E.g. to build only gpu's PDF add the following to the >> Documentation/gpu/conf.py:: >> >> +latex_documents = [ >> +("index", "gpu.tex", "Linux GPU Driver Developer's Guide", >> + "The kernel development community", "manual"), >> +] >> >> and run: >> >> make SPHINXDIRS=gpu pdfdocs > > Did you ever try this with more than one subfolder? Seems not, there is a ";" missed in the 'foreach' loop, see patch below. To avoid conflicts, can you apply the ";" on your "Makefile.sphinx improvements" series? / Thanks diff --git a/Documentation/Makefile.sphinx b/Documentation/Makefile.sphinx index 92deea3..b7fbd12 100644 --- a/Documentation/Makefile.sphinx +++ b/Documentation/Makefile.sphinx @@ -76,7 +76,7 @@ endif # HAVE_PDFLATEX pdfdocs: latexdocs ifneq ($(HAVE_PDFLATEX),0) - $(foreach var,$(SPHINXDIRS), $(MAKE) PDFLATEX=xelatex LATEXOPTS="-interaction=nonstopmode" -C $(BUILDDIR)/$(var)/latex) + $(foreach var,$(SPHINXDIRS), $(MAKE) PDFLATEX=xelatex LATEXOPTS="-interaction=nonstopmode" -C $(BUILDDIR)/$(var)/latex;) endif # HAVE_PDFLATEX epubdocs: --Markus -- -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: [PATCH 1/3] doc-rst: generic way to build PDF of sub-folders
On Wed, 24 Aug 2016, Markus Heiserwrote: > From: Markus Heiser > > This extends the method to build only sub-folders to the targets > "latexdocs" and "pdfdocs". To do so, a conf.py in the sub-folder is > required, where the latex_documents of the sub-folder are > defined. E.g. to build only gpu's PDF add the following to the > Documentation/gpu/conf.py:: > > +latex_documents = [ > +("index", "gpu.tex", "Linux GPU Driver Developer's Guide", > + "The kernel development community", "manual"), > +] > > and run: > > make SPHINXDIRS=gpu pdfdocs Did you ever try this with more than one subfolder? BR, Jani. > > Signed-off-by: Markus Heiser > --- > Documentation/Makefile.sphinx | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/Documentation/Makefile.sphinx b/Documentation/Makefile.sphinx > index 894cfaa..92deea3 100644 > --- a/Documentation/Makefile.sphinx > +++ b/Documentation/Makefile.sphinx > @@ -71,12 +71,12 @@ ifeq ($(HAVE_PDFLATEX),0) > $(warning The 'xelatex' command was not found. Make sure you have it > installed and in PATH to produce PDF output.) > @echo " SKIPSphinx $@ target." > else # HAVE_PDFLATEX > - @$(call loop_cmd,sphinx,latex,.,latex,.) > + @$(foreach var,$(SPHINXDIRS),$(call > loop_cmd,sphinx,latex,$(var),latex,$(var))) > endif # HAVE_PDFLATEX > > pdfdocs: latexdocs > ifneq ($(HAVE_PDFLATEX),0) > - $(Q)$(MAKE) PDFLATEX=xelatex LATEXOPTS="-interaction=nonstopmode" -C > $(BUILDDIR)/latex > + $(foreach var,$(SPHINXDIRS), $(MAKE) PDFLATEX=xelatex > LATEXOPTS="-interaction=nonstopmode" -C $(BUILDDIR)/$(var)/latex) > endif # HAVE_PDFLATEX > > epubdocs: -- Jani Nikula, Intel Open Source Technology Center -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
[PATCH 1/3] doc-rst: generic way to build PDF of sub-folders
From: Markus HeiserThis extends the method to build only sub-folders to the targets "latexdocs" and "pdfdocs". To do so, a conf.py in the sub-folder is required, where the latex_documents of the sub-folder are defined. E.g. to build only gpu's PDF add the following to the Documentation/gpu/conf.py:: +latex_documents = [ +("index", "gpu.tex", "Linux GPU Driver Developer's Guide", + "The kernel development community", "manual"), +] and run: make SPHINXDIRS=gpu pdfdocs Signed-off-by: Markus Heiser --- Documentation/Makefile.sphinx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/Makefile.sphinx b/Documentation/Makefile.sphinx index 894cfaa..92deea3 100644 --- a/Documentation/Makefile.sphinx +++ b/Documentation/Makefile.sphinx @@ -71,12 +71,12 @@ ifeq ($(HAVE_PDFLATEX),0) $(warning The 'xelatex' command was not found. Make sure you have it installed and in PATH to produce PDF output.) @echo " SKIPSphinx $@ target." else # HAVE_PDFLATEX - @$(call loop_cmd,sphinx,latex,.,latex,.) + @$(foreach var,$(SPHINXDIRS),$(call loop_cmd,sphinx,latex,$(var),latex,$(var))) endif # HAVE_PDFLATEX pdfdocs: latexdocs ifneq ($(HAVE_PDFLATEX),0) - $(Q)$(MAKE) PDFLATEX=xelatex LATEXOPTS="-interaction=nonstopmode" -C $(BUILDDIR)/latex + $(foreach var,$(SPHINXDIRS), $(MAKE) PDFLATEX=xelatex LATEXOPTS="-interaction=nonstopmode" -C $(BUILDDIR)/$(var)/latex) endif # HAVE_PDFLATEX epubdocs: -- 2.7.4 -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html