From: Michael Orlitzky Date: Wed, 16 Oct 2024 14:42:24 +0000 (-0400) Subject: GNUmakefile: run $(LATEX) one more time to fix the log X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=HEAD;p=mjotex.git GNUmakefile: run $(LATEX) one more time to fix the log Even after we've found a fixed point, it looks like we need one more run to convince LaTeX that the cross-references are right. Without this, we consistently get hits on check-undefined. --- diff --git a/GNUmakefile b/GNUmakefile index 79791c4..3c00927 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -120,6 +120,10 @@ $(PN).pdf: $(SRCS) $(BUILDDIR)/$(PN).bbl $(INDEX_DSTS) done; \ fi; + if grep -q 'Rerun to get' $(BUILDDIR)/$(PN).log; then \ + $(LATEX) $(PN).tex; \ + fi; + mv $(BUILDDIR)/$(PN).pdf $@ $(BUILDDIR):