From: Sebastian Harl Date: Wed, 24 Nov 2010 19:56:50 +0000 (+0100) Subject: Makefile: Rerun latex until TOC has been generated. X-Git-Tag: ORR-2010~1 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=b53721a06d946b3e6459f798dbccaa68ebe563d7;p=talk-dvcs-git.git Makefile: Rerun latex until TOC has been generated. --- diff --git a/Makefile b/Makefile index ce663fa..794729f 100644 --- a/Makefile +++ b/Makefile @@ -2,6 +2,9 @@ all: slides.pdf handout.pdf %.pdf: %.tex pdflatex $< + while grep -E -q 'No file.*\.toc' $(<:%.tex=%.log); do \ + pdflatex $<; \ + done slides.pdf: slides.tex main.tex