From d0a4827c8771f7d847cfc7c68e1961500184fa66 Mon Sep 17 00:00:00 2001 From: Sébastien Dailly Date: Thu, 23 May 2024 10:18:00 +0200 Subject: Added batch mode in the first latex run --- common/Makefile.common | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'common') diff --git a/common/Makefile.common b/common/Makefile.common index 730a994..d739a5e 100644 --- a/common/Makefile.common +++ b/common/Makefile.common @@ -80,10 +80,12 @@ tmp/%.tex: %.rst $(INCLUDED_PDF) $(SOURCES) | tmp # Generate each pdf with latex tmp/%.pdf: tmp/%.tex tmp/model.tex $(BIBS) | tmp set TEXINPUTS=.:$(MODEL):$$(TEXINPUTS) + # Make the first run in batch mode (no pdf produced) + $(TEX) -output-directory tmp --halt-on-error --draftmode $< $(TEX) -output-directory tmp $< #bibtex tmp/$*.aux && $(TEX) -output-directory tmp $< || echo "no bib" while grep 'Rerun to get ' tmp/$*.log ; do \ - $(TEX) --halt-on-error -output-directory tmp $< ;\ + $(TEX) -output-directory tmp $< ;\ done # Put the pdf in the right place -- cgit v1.2.3