]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
doc: fix build pdf on non gnu make platforms
authorJason Ish <ish@unx.ca>
Fri, 18 Nov 2016 17:41:11 +0000 (11:41 -0600)
committerVictor Julien <victor@inliniac.net>
Wed, 23 Nov 2016 09:38:08 +0000 (10:38 +0100)
The Makefile generated by sphinx-build is GNU Make specific
causing the PDF phase to fail. Instead call pdflatex directly
based on how the generated Makefile was doing it.

doc/userguide/Makefile.am

index c71f2b7af0b0e17b1cb771b97fa4364922d8afc1..afa535692dcac6acc2a05c92ac92c1f1545869ed 100644 (file)
@@ -47,7 +47,14 @@ _build/latex/Suricata.pdf:
        version=$(PACKAGE_VERSION) \
                $(SPHINX_BUILD) -W -b latex -d _build/doctrees \
                $(top_srcdir)/doc/userguide _build/latex
-       cd _build/latex && $(MAKE) all-pdf
+# The Sphinx generated Makefile is GNU Make specific, so just do what
+# it does here - yes, multiple passes of pdflatex is required.
+       cd _build/latex && pdflatex Suricata.tex
+       cd _build/latex && pdflatex Suricata.tex
+       cd _build/latex && pdflatex Suricata.tex
+       cd _build/latex && makeindex -s python.ist Suricata.idx
+       cd _build/latex && pdflatex Suricata.tex
+       cd _build/latex && pdflatex Suricata.tex
 
 userguide.pdf: _build/latex/Suricata.pdf
        cp _build/latex/Suricata.pdf userguide.pdf