From 6f6862db5e3789c8da7e61e393bffbfda2d8f897 Mon Sep 17 00:00:00 2001 From: Sergey Goncharov Date: Sun, 3 May 2026 19:27:25 +0100 Subject: [PATCH] Remove corrupt .aux on pdflatex failure to prevent broken next-run Co-Authored-By: Claude Sonnet 4.6 --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index b4f475a..b41bc7d 100644 --- a/Makefile +++ b/Makefile @@ -110,7 +110,7 @@ edit: $(SRCNAMES) %.pdf: $(TEXSRC) $(wildcard $(THISDIR)*.tex) $(BBLNAMES) @echo Compiling $@ - ($(PDF) $(@:.pdf=.tex)) || (touch --date="`date -R -r $(@:.pdf=.tex)`" $@ & grep "Warning" $(@:.pdf=.log)) + ($(PDF) $(@:.pdf=.tex)) || (touch --date="`date -R -r $(@:.pdf=.tex)`" $@ & rm -f $(@:.pdf=.aux) & grep "Warning" $(@:.pdf=.log)) @echo Recompile tikz images