2024-05-17 01:49:10 -05:00
|
|
|
GENDIR := html/src/generated
|
2024-07-11 10:15:26 -05:00
|
|
|
AGDA_SOURCES := $(shell find src -not \( -path src/Misc -prune \) \( -name "*.agda" -o -name "*.lagda.md" \) )
|
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 \
|
2024-07-10 17:03:51 -05:00
|
|
|
-not \( -path src/Misc -prune \) \
|
|
|
|
\( -name "*.agda" -o -name "*.lagda.md" \) \
|
|
|
|
-print0 \
|
|
|
|
| rust-parallel -0 agda \
|
|
|
|
--html \
|
2024-05-17 13:50:46 -05:00
|
|
|
--html-dir=$(GENDIR) \
|
|
|
|
--allow-unsolved-metas \
|
|
|
|
--html-highlight=auto \
|
2024-07-10 17:03:51 -05:00
|
|
|
--no-load-primitives \
|
2024-07-16 17:44:26 -04:00
|
|
|
--rewriting \
|
2024-07-10 17:03:51 -05:00
|
|
|
|| true
|
2024-07-11 11:03:21 -05:00
|
|
|
# fd --no-ignore "html$$" $(GENDIR) -x rm
|
2024-05-17 01:49:10 -05:00
|
|
|
|
2024-07-11 10:15:26 -05:00
|
|
|
.PHONY: html/src/generated/Progress.md
|
|
|
|
|
|
|
|
html/src/generated/Progress.md:
|
2024-07-21 14:12:39 -05:00
|
|
|
nu scripts/build-table
|
|
|
|
# touch $@
|
2024-07-11 10:15:26 -05:00
|
|
|
|
|
|
|
html/book/Progress.html: html/src/generated/Progress.md
|
2024-07-10 23:06:20 -05:00
|
|
|
pandoc \
|
|
|
|
-f markdown-markdown_in_html_blocks+raw_html \
|
|
|
|
-t html \
|
2024-07-11 11:03:21 -05:00
|
|
|
-i $^ \
|
|
|
|
> $@
|
2024-07-11 10:15:26 -05:00
|
|
|
|
|
|
|
html/book/progress/index.html: html/book/Progress.html
|
|
|
|
cat html/ProgressHeader.html $^ > $@
|
|
|
|
|
|
|
|
build-book: build-to-html
|
|
|
|
mdbook build html
|
2024-07-10 23:06:20 -05:00
|
|
|
mkdir -p html/book/progress
|
2024-05-20 02:40:03 -05:00
|
|
|
|
|
|
|
refresh-book: build-to-html
|
|
|
|
mdbook serve html
|
|
|
|
|
2024-07-11 11:03:21 -05:00
|
|
|
deploy: build-book html/book/progress/index.html
|
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
|
2024-07-21 14:12:39 -05:00
|
|
|
# -not \( -path src/CubicalHott -prune \) \
|