fix: stable build with nomenclature, graphicx, 3-pass compilation

This commit is contained in:
Worker Agent
2026-06-04 19:41:43 -05:00
parent c46724301a
commit 6f6cd356a2
2 changed files with 10 additions and 5 deletions

View File

@@ -8,14 +8,14 @@ BIBTEX = bibtex
.PHONY: all quick clean view distclean
## all: Full build (pdflatex -> bibtex if needed -> pdflatex x2)
## all: Full build with nomenclature indexing and 3-pass pdflatex
all:
$(TEX) -interaction=nonstopmode $(TARGET).tex
@if [ -f $(TARGET).blg ] || grep -ql '\\bibliography\|\\bibliographystyle' $(TARGET).tex; then \
$(BIBTEX) $(TARGET); \
$(TEX) -interaction=nonstopmode $(TARGET).tex; \
$(TEX) -interaction=nonstopmode $(TARGET).tex; \
@if [ -f $(TARGET).nlo ]; then \
makeindex -s nomencl.ist -o $(TARGET).nls $(TARGET).nlo; \
fi
$(TEX) -interaction=nonstopmode $(TARGET).tex
$(TEX) -interaction=nonstopmode $(TARGET).tex
## quick: Single pdflatex pass for rapid iteration
quick: