Remove corrupt .aux on pdflatex failure to prevent broken next-run

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Sergey Goncharov 2026-05-03 19:27:25 +01:00
parent 348823b83c
commit 6f6862db5e

View File

@ -110,7 +110,7 @@ edit: $(SRCNAMES)
%.pdf: $(TEXSRC) $(wildcard $(THISDIR)*.tex) $(BBLNAMES) %.pdf: $(TEXSRC) $(wildcard $(THISDIR)*.tex) $(BBLNAMES)
@echo Compiling $@ @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 @echo Recompile tikz images