2024-05-17 06:49:10 +00:00
|
|
|
GENDIR := html/src/generated
|
|
|
|
build-to-html:
|
|
|
|
find src/HottBook \( -name "*.agda" -o -name "*.lagda.md" \) -print0 \
|
2024-05-17 18:50:46 +00:00
|
|
|
| rust-parallel -0 agda \
|
|
|
|
--html \
|
|
|
|
--html-dir=$(GENDIR) \
|
|
|
|
--allow-unsolved-metas \
|
|
|
|
--html-highlight=auto \
|
|
|
|
|| true
|
2024-05-17 06:49:10 +00:00
|
|
|
fd --no-ignore "html$$" $(GENDIR) -x rm
|
|
|
|
|
|
|
|
deploy: build-to-html
|
|
|
|
mdbook build html
|
|
|
|
rsync -azrP html/book/ root@veil:/home/blogDeploy/public/hott-book
|
|
|
|
|
|
|
|
.PHONY: build-to-html deploy
|