From e6b0886fe71cbbd81a709dbc2e0535422bb257d4 Mon Sep 17 00:00:00 2001 From: Luke Hsiao Date: Mon, 9 Dec 2019 11:10:25 -0800 Subject: build(Makefile): use tectonic to build This also fixes the Makefile rules to actually trigger only when necessary. --- Makefile | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 8b80dff..610484e 100644 --- a/Makefile +++ b/Makefile @@ -1,9 +1,11 @@ SRC=$(wildcard *.tex) PDF=$(SRC:.tex=.pdf) -all: $(PDF) -%.pdf: %.tex - latexmk -outdir=build --pdf $< - latexmk -outdir=build -c - write-good $< || true -clean: ; latexmk -outdir=build -C; rm -f build/*.bbl +all: build/$(PDF) +build/%.pdf: %.tex + tectonic -o build/ $< + +clean: + rm -f build/*.pdf + +.PHONY: clean -- cgit v1.2.3