Feat: done
This commit is contained in:
16
Makefile
Normal file
16
Makefile
Normal file
@@ -0,0 +1,16 @@
|
||||
.PHONY: all watch clean
|
||||
|
||||
SOURCE := $(shell find docs/ -type f -name '*.typ')
|
||||
TARGET := docs/main.pdf
|
||||
TYPST_ARGS += --root .
|
||||
|
||||
all: $(TARGET)
|
||||
|
||||
docs/main.pdf: docs/main.typ $(SOURCE)
|
||||
typst compile $(TYPST_ARGS) $<
|
||||
|
||||
watch:
|
||||
typst watch --root . docs/main.typ
|
||||
|
||||
clean:
|
||||
-rm docs/main.pdf
|
||||
Reference in New Issue
Block a user