type-theory/Makefile

27 lines
626 B
Makefile
Raw Normal View History

2024-05-17 01:49:10 -05:00
GENDIR := html/src/generated
2024-05-20 02:40:03 -05:00
2024-05-17 01:49:10 -05:00
build-to-html:
2024-05-30 16:54:04 -05:00
find src \
-not \( -path src/Misc -prune \) \
\( -name "*.agda" -o -name "*.lagda.md" \) \
-print0 \
2024-05-17 13:50:46 -05:00
| rust-parallel -0 agda \
--html \
--html-dir=$(GENDIR) \
--allow-unsolved-metas \
--html-highlight=auto \
2024-06-02 18:13:09 -04:00
--no-load-primitives \
2024-05-17 13:50:46 -05:00
|| true
2024-05-17 01:49:10 -05:00
fd --no-ignore "html$$" $(GENDIR) -x rm
2024-05-20 02:40:03 -05:00
build-book: build-to-html
2024-05-17 01:49:10 -05:00
mdbook build html
2024-05-20 02:40:03 -05:00
refresh-book: build-to-html
mdbook serve html
deploy: build-book
2024-05-30 16:54:04 -05:00
rsync -azr html/book/ root@veil:/home/blogDeploy/public/research
2024-05-17 01:49:10 -05:00
2024-06-02 18:13:09 -04:00
.PHONY: build-book build-to-html deploy
# -not \( -path src/CubicalHott -prune \) \