From 48225e700c03e7e4bc2e11fe059e95f4505b03ad Mon Sep 17 00:00:00 2001 From: Sivecano <sivecano@gmail.com> Date: Wed, 30 Oct 2024 16:24:24 +0100 Subject: [PATCH] update template template example Makefile --- typst_example/Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/typst_example/Makefile b/typst_example/Makefile index 0982d79..2dfc4f0 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) $< -- GitLab