cek-call-cc/Makefile

18 lines
431 B
Makefile
Raw Normal View History

2021-12-08 06:33:28 +00:00
SOURCE_MODULES := $(shell find src/Project -name "*.agda" -exec basename {} \;)
GENERATED_TEX := $(patsubst %.agda, gentex/Project/%.tex, $(SOURCE_MODULES))
2021-12-08 18:35:31 +00:00
main.pdf: main.tex agda.sty
tectonic --keep-logs main.tex
2021-12-08 06:33:28 +00:00
gentex/Project/%.tex: src/Project/%.agda
agda --latex-dir=gentex --latex $<
agda.sty: $(GENERATED_TEX)
2021-12-08 18:35:31 +00:00
rm -f agda.sty
2021-12-08 06:33:28 +00:00
cp gentex/agda.sty agda.sty
watch:
2021-12-08 18:35:31 +00:00
watchexec -e agda,tex -- make main.pdf
2021-12-08 06:33:28 +00:00
.PHONY: watch