Skip to content

Commit b61bc1c

Browse files
committed
Serialize latex prerequisites before running build
Adding _ensure-sphinxcontrib-svg2pdfconverter as a sibling prerequisite of build makes make -jN latex nondeterministic, because GNU Make may run both prerequisites in parallel. In that mode, build can start before the converter package (and even the venv it depends on) is installed, so the LaTeX doc build can fail intermittently with missing tooling even though the target is supposed to prepare it first.
1 parent 0066fd7 commit b61bc1c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Doc/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,9 @@ htmlhelp: build
8888
"build/htmlhelp/pydoc.hhp project file."
8989

9090
.PHONY: latex
91-
latex: _ensure-sphinxcontrib-svg2pdfconverter
9291
latex: BUILDER = latex
93-
latex: build
92+
latex: _ensure-sphinxcontrib-svg2pdfconverter
93+
$(MAKE) build BUILDER=$(BUILDER)
9494
@echo "Build finished; the LaTeX files are in build/latex."
9595
@echo "Run \`make all-pdf' or \`make all-ps' in that directory to" \
9696
"run these through (pdf)latex."

0 commit comments

Comments
 (0)