diff --git a/typst_example/Makefile b/typst_example/Makefile index 0982d79467772f9098f43a339bec8ff76bd08b9f..2dfc4f0666452a06822fd5dce3d67f3366f3167a 100644 --- a/typst_example/Makefile +++ b/typst_example/Makefile @@ -1,8 +1,12 @@ TYPST_ROOT!=git rev-parse --show-toplevel -WATCH=example.pdf +WATCH=example.typ all : example.pdf +.PHONY: watch +watch: + typst w --root $(TYPST_ROOT) $(WATCH) + %.pdf : %.typ typst c --root $(TYPST_ROOT) $<