bsc-leon-vatthauer/agda/Makefile

35 lines
1,007 B
Makefile
Raw Permalink Normal View History

2023-12-05 11:51:08 +01:00
.PHONY: all clean pandoc Everything.agda
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-12-05 18:07:06 +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-22 08:59:46 +01:00
rm -f 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
2023-12-05 11:51:08 +01:00
push: all
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-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
open:
2024-02-14 16:59:30 +01:00
firefox public/index.html