bsc-leon-vatthauer/Makefile

35 lines
966 B
Makefile
Raw Normal View History

.PHONY: all clean pandoc
2023-08-19 12:15:34 +02:00
all: agda
make pandoc
2023-08-19 16:11:22 +02:00
pandoc: public/*.md
@$(foreach file,$^, \
pandoc $(file) -s --to=html+TEX_MATH_DOLLARS --mathjax -c Agda.css -o $(file:.md=.html) ; \
)
agda: Everything.agda
2023-11-13 09:22:52 +01:00
agda --html --html-dir=public src/index.lagda.md --html-highlight=auto -i.
rm -f public/Agda.css
cp Agda.css public/Agda.css
2023-08-19 12:15:34 +02:00
clean:
2023-11-13 10:27:15 +01:00
rm -f src/Everything.agda
2023-08-19 16:11:22 +02:00
rm -rf public/*
find . -name '*.agdai' -exec rm \{\} \;
2023-08-19 12:15:34 +02:00
# push compiled html to my cip directory
push: all push'
2023-11-13 09:22:52 +01:00
# just push to CIP without rebuilding
push':
chmod +w public/Agda.css
mv public bsc-thesis
scp -r bsc-thesis hy84coky@cip2a7.cip.cs.fau.de:.www/
mv bsc-thesis public
2023-08-19 12:15:34 +02:00
Everything.agda:
2023-11-13 10:27:15 +01:00
git ls-tree --full-tree -r --name-only HEAD | egrep '^src/[^\.]*.l?agda(\.md)?' | grep -v 'index.lagda.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
open:
firefox public/index.html