mirror of
https://git8.cs.fau.de/theses/bsc-leon-vatthauer.git
synced 2024-05-31 07:28:34 +02:00
22 lines
No EOL
560 B
Makefile
22 lines
No EOL
560 B
Makefile
.PHONY: all clean pandoc
|
|
|
|
all: agda
|
|
make pandoc
|
|
|
|
pandoc: out/*.md
|
|
@$(foreach file,$^, \
|
|
pandoc $(file) -s -c Agda.css -o $(file:.md=.html) ; \
|
|
)
|
|
|
|
agda : Everything.agda
|
|
agda --html --html-dir=out Everything.agda --html-highlight=auto -i.
|
|
|
|
clean:
|
|
rm Everything.agda
|
|
rm -rf out/*
|
|
|
|
open:
|
|
firefox out/Everything.html
|
|
|
|
Everything.agda:
|
|
git ls-tree --full-tree -r --name-only HEAD | 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 > Everything.agda
|