diff --git a/Makefile b/Makefile index 578ea82..64de9f1 100644 --- a/Makefile +++ b/Makefile @@ -1,2 +1,16 @@ +TYP_SRC := $(wildcard DM*.typ) +TEX_SRC := $(wildcard DM*.tex) + + +all: all-typ $(TEX_SRC:%.tex=%.pdf) +all-typ: $(TYP_SRC:%.typ=%.typ.pdf) + +%.typ.pdf: %.typ + typst compile $^ $@ + + +%.pdf: %.tex + pdflatex -shell-escape -interaction=nonstopmode $^ + clean: rm -f *.aux *.log *.pdf