2023-12-05 11:51:08 +01:00
|
|
|
.PHONY: all clean pandoc Everything.agda
|
2023-08-19 12:15:34 +02:00
|
|
|
|
2023-08-19 16:01:48 +02:00
|
|
|
all: agda
|
|
|
|
make pandoc
|
|
|
|
|
2023-08-19 16:11:22 +02:00
|
|
|
pandoc: public/*.md
|
2023-08-19 16:01:48 +02:00
|
|
|
@$(foreach file,$^, \
|
2023-09-16 00:02:51 +02:00
|
|
|
pandoc $(file) -s --to=html+TEX_MATH_DOLLARS --mathjax -c Agda.css -o $(file:.md=.html) ; \
|
2023-08-19 16:01:48 +02:00
|
|
|
)
|
|
|
|
|
2023-09-11 13:57:10 +02:00
|
|
|
agda: Everything.agda
|
2023-12-05 18:07:06 +01:00
|
|
|
agda --html --html-dir=public src/index.lagda.md --html-highlight=auto -i.
|
2023-09-16 00:02:51 +02:00
|
|
|
rm -f public/Agda.css
|
|
|
|
cp Agda.css public/Agda.css
|
2023-08-19 12:15:34 +02:00
|
|
|
|
|
|
|
clean:
|
2023-11-22 08:59:46 +01:00
|
|
|
rm -f Everything.agda
|
2023-08-19 16:11:22 +02:00
|
|
|
rm -rf public/*
|
2023-09-12 16:03:20 +02:00
|
|
|
find . -name '*.agdai' -exec rm \{\} \;
|
2023-08-19 12:15:34 +02:00
|
|
|
|
2023-09-12 16:03:20 +02:00
|
|
|
# push compiled html to my cip directory
|
2023-12-05 11:51:08 +01:00
|
|
|
push: all
|
2023-09-11 20:54:21 +02:00
|
|
|
chmod +w public/Agda.css
|
2024-02-14 16:59:30 +01:00
|
|
|
rm -rf bsc-thesis
|
|
|
|
mv -T public bsc-thesis
|
|
|
|
scp -r bsc-thesis hy84coky@cip1d1.cip.cs.fau.de:.www/
|
|
|
|
mv -T bsc-thesis public
|
2023-09-11 13:57:10 +02:00
|
|
|
|
2023-08-19 12:15:34 +02:00
|
|
|
Everything.agda:
|
2023-12-05 18:07:06 +01:00
|
|
|
echo "{-# OPTIONS --guardedness #-}" > src/Everything.agda
|
2023-12-22 19:41:00 +01:00
|
|
|
git ls-files | egrep '^src/[^\.]*.l?agda(\.md)?' | grep -v 'index.lagda.md' | grep -v 'bsc.agda-lib' | sed -e 's|^src/[/]*|import |' -e 's|/|.|g' -e 's/.agda//' -e '/import Everything/d' -e 's/..md//' | LC_COLLATE='C' sort >> src/Everything.agda
|
2023-10-03 19:44:08 +02:00
|
|
|
|
|
|
|
open:
|
2024-02-14 16:59:30 +01:00
|
|
|
firefox public/index.html
|