]> gitweb.michael.orlitzky.com - mjotex.git/commitdiff
GNUmakefile: run $(LATEX) one more time to fix the log master
authorMichael Orlitzky <michael@orlitzky.com>
Wed, 16 Oct 2024 14:42:24 +0000 (10:42 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Wed, 16 Oct 2024 14:42:24 +0000 (10:42 -0400)
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

index 79791c4759dbe303becd01ed317512dcb623b9a5..3c0092718b227ab79e4af7edd53d27dd6b1f269f 100644 (file)
@@ -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):