From 961dc045368407ff9fc5288b675b3d86f2bdd6c0 Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Wed, 16 Oct 2024 10:42:24 -0400 Subject: [PATCH] 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. --- GNUmakefile | 4 ++++ 1 file changed, 4 insertions(+) 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): -- 2.44.2