cek-call-cc/Makefile

16 lines
410 B
Makefile

SOURCE_MODULES := $(shell find src/Project -name "*.agda" -exec basename {} \;)
GENERATED_TEX := $(patsubst %.agda, gentex/Project/%.tex, $(SOURCE_MODULES))
gentex/Project/%.tex: src/Project/%.agda
agda --latex-dir=gentex --latex $<
agda.sty: $(GENERATED_TEX)
cp gentex/agda.sty agda.sty
main.pdf: main.tex agda.sty
tectonic --keep-logs main.tex
watch:
watchexec -e tex -- make main.pdf
.PHONY: watch