diff --git a/Makefile b/Makefile index 10e9310..21a711f 100644 --- a/Makefile +++ b/Makefile @@ -1,14 +1,18 @@ FILE := main OUT := build +.PHONY: pdf pdf: - # Also see .latexmkrc - latexmk -outdir=$(OUT) -pdf $(FILE) + latexmk -interaction=nonstopmode -outdir=$(OUT) -pdf -halt-on-error $(FILE) +.PHONY: watch +watch: + latexmk -interaction=nonstopmode -outdir=$(OUT) -pdf -pvc -halt-on-error $(FILE) + +.PHONY: clean clean: rm -rf $(filter-out $(OUT)/$(FILE).pdf, $(wildcard $(OUT)/*)) +.PHONY: purge purge: rm -rf $(OUT) - -.PHONY: latexmk clean purge