agda-intro/Makefile

31 lines
868 B
Makefile
Raw Normal View History

2024-04-11 13:21:15 +02:00
.PHONY: all clean pandoc Everything.agda
all: agda
make pandoc
pandoc: public/*.md
@$(foreach file,$^, \
pandoc $(file) -s --to=html+TEX_MATH_DOLLARS --mathjax -c Agda.css -o $(file:.md=.html) ; \
)
agda: Everything.agda
2024-04-24 12:46:02 +02:00
agda --html --html-dir=public src/Everything.agda --html-highlight=auto -isrc
2024-04-11 13:21:15 +02:00
rm -f public/Agda.css
cp Agda.css public/Agda.css
clean:
2024-04-24 12:46:02 +02:00
rm -f src/Everything.agda
2024-04-11 13:21:15 +02:00
rm -rf public/*
find . -name '*.agdai' -exec rm \{\} \;
# push compiled html to my cip directory
push: all
chmod +w public/Agda.css
rm -rf agda-intro
mv -T public agda-intro
scp -r agda-intro hy84coky@cip1d1.cip.cs.fau.de:.www/
mv -T agda-intro public
Everything.agda:
git ls-files | egrep '^src/[^\.]*.l?agda(\.md)?' | 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