summaryrefslogtreecommitdiffstatshomepage
path: root/Makefile
diff options
context:
space:
mode:
authorLuke Hsiao <lwhsiao@stanford.edu>2019-12-09 11:10:25 -0800
committerLuke Hsiao <lwhsiao@stanford.edu>2019-12-09 11:10:25 -0800
commite6b0886fe71cbbd81a709dbc2e0535422bb257d4 (patch)
tree8d5fec3b7088a920027b96854656fbdfbbf1931a /Makefile
parentf6364226c7551acebc4ce907121584d342b44463 (diff)
downloadlatex-cal-e6b0886fe71cbbd81a709dbc2e0535422bb257d4.tar.gz
latex-cal-e6b0886fe71cbbd81a709dbc2e0535422bb257d4.tar.zst
latex-cal-e6b0886fe71cbbd81a709dbc2e0535422bb257d4.zip
build(Makefile): use tectonic to build
This also fixes the Makefile rules to actually trigger only when necessary.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files 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