Added 'debug' target to Makefile

This commit is contained in:
Wesley R. Elsberry 2025-10-07 05:04:53 -04:00
parent 0c1566e5a5
commit 0bb18c5316
1 changed files with 9 additions and 0 deletions

View File

@ -20,6 +20,15 @@ clean:
latexmk -C
rm -f paper-*.pdf
debug:
emacs -Q --batch -l build.el --eval "(setenv \"VENUE\" \"$(VENUE)\")" \
--eval "(with-current-buffer (find-file-noselect \"paper.org\") (wes--inject-setupfile \"$(VENUE)\") (org-latex-export-to-latex))"
latexmk -C
latexmk -pdf -file-line-error -halt-on-error -interaction=nonstopmode -shell-escape paper.tex || true
@echo "---- paper.log (tail) ----"
@tail -n 200 paper.log || true
# Dockerized builds
DOCKER_IMAGE ?= polypaper:full
DOCKERFILE ?= Dockerfile.full