From ee16b86900c50364078f5a43e2e18bd4d352bb55 Mon Sep 17 00:00:00 2001 From: Jason Ish Date: Fri, 18 Nov 2016 11:41:11 -0600 Subject: [PATCH] doc: fix build pdf on non gnu make platforms 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 | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/doc/userguide/Makefile.am b/doc/userguide/Makefile.am index c71f2b7af0..afa535692d 100644 --- a/doc/userguide/Makefile.am +++ b/doc/userguide/Makefile.am @@ -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