From: Andrei Pavel Date: Wed, 31 May 2023 12:06:41 +0000 (+0300) Subject: [#2554] simplify PDF building X-Git-Tag: Kea-2.4.0~202 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9ab147fe956897dd9080f6b793d2c709ba46f1be;p=thirdparty%2Fkea.git [#2554] simplify PDF building Removed a lot of commands in the Makefile that were repeated. Removed makeindex command because it doesn't seem required. PDF is now built in seconds rather than minutes, and thousands of verbose build output lines are now gone. --- diff --git a/doc/sphinx/Makefile.am b/doc/sphinx/Makefile.am index 2fbace64d2..e8802a56e5 100644 --- a/doc/sphinx/Makefile.am +++ b/doc/sphinx/Makefile.am @@ -148,17 +148,11 @@ PDFLATEX_AND_OPTS=$(PDFLATEX) -interaction nonstopmode pdf: $(main_sources) api-files.txt mes-files.txt $(srcdir)/arm/platforms.rst $(SPHINXBUILD) -M latex $(srcdir) $(sphinxbuilddir) $(sphinxopts) - -cd $(abs_sphinxbuilddir)/latex && $(PDFLATEX_AND_OPTS) kea-arm.tex - -cd $(abs_sphinxbuilddir)/latex && $(PDFLATEX_AND_OPTS) kea-arm.tex - -cd $(abs_sphinxbuilddir)/latex && $(PDFLATEX_AND_OPTS) kea-arm.tex - -cd $(abs_sphinxbuilddir)/latex && makeindex -s python.ist kea-arm.idx - -cd $(abs_sphinxbuilddir)/latex && $(PDFLATEX_AND_OPTS) kea-arm.tex cd $(abs_sphinxbuilddir)/latex && $(PDFLATEX_AND_OPTS) kea-arm.tex - -cd $(abs_sphinxbuilddir)/latex && $(PDFLATEX_AND_OPTS) kea-messages.tex - -cd $(abs_sphinxbuilddir)/latex && $(PDFLATEX_AND_OPTS) kea-messages.tex - -cd $(abs_sphinxbuilddir)/latex && $(PDFLATEX_AND_OPTS) kea-messages.tex - -cd $(abs_sphinxbuilddir)/latex && makeindex -s python.ist kea-messages.idx - -cd $(abs_sphinxbuilddir)/latex && $(PDFLATEX_AND_OPTS) kea-messages.tex + cd $(abs_sphinxbuilddir)/latex && makeindex -s python.ist kea-arm.idx + cd $(abs_sphinxbuilddir)/latex && $(PDFLATEX_AND_OPTS) kea-arm.tex + cd $(abs_sphinxbuilddir)/latex && $(PDFLATEX_AND_OPTS) kea-messages.tex + cd $(abs_sphinxbuilddir)/latex && makeindex -s python.ist kea-messages.idx cd $(abs_sphinxbuilddir)/latex && $(PDFLATEX_AND_OPTS) kea-messages.tex html: $(main_sources) api-files.txt mes-files.txt $(srcdir)/arm/platforms.rst