From c91f98f43499478e5c84c90e35b740298f9d6133 Mon Sep 17 00:00:00 2001 From: Adam Turner <9087854+aa-turner@users.noreply.github.com> Date: Sat, 17 Aug 2024 18:17:53 +0100 Subject: [PATCH] Don't run the full ``latexmk`` process twice --- Doc/Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Doc/Makefile b/Doc/Makefile index a6063016dc62dc8..b8619c0032a1368 100644 --- a/Doc/Makefile +++ b/Doc/Makefile @@ -213,6 +213,9 @@ dist: @echo "Building LaTeX (A4 paper)..." rm -rf build/latex $(MAKE) latex PAPER=a4 + # remove zip & bz2 dependency on all-pdf, + # as otherwise the full latexmk process is run twice. + -sed -i 's/: all-$(FMT)/:/' build/latex/Makefile (cd build/latex; $(MAKE) clean && $(MAKE) --jobs=12 --output-sync LATEXMKOPTS='-quiet' all-pdf && $(MAKE) FMT=pdf zip bz2) cp build/latex/docs-pdf.zip dist/python-$(DISTVERSION)-docs-pdf-a4.zip cp build/latex/docs-pdf.tar.bz2 dist/python-$(DISTVERSION)-docs-pdf-a4.tar.bz2 @@ -222,6 +225,9 @@ dist: @echo "Building LaTeX (US paper)..." rm -rf build/latex $(MAKE) latex PAPER=letter + # remove zip & bz2 dependency on all-pdf, + # as otherwise the full latexmk process is run twice. + -sed -i 's/: all-$(FMT)/:/' build/latex/Makefile (cd build/latex; $(MAKE) clean && $(MAKE) --jobs=12 --output-sync LATEXMKOPTS='-quiet' all-pdf && $(MAKE) FMT=pdf zip bz2) cp build/latex/docs-pdf.zip dist/python-$(DISTVERSION)-docs-pdf-letter.zip cp build/latex/docs-pdf.tar.bz2 dist/python-$(DISTVERSION)-docs-pdf-letter.tar.bz2