bsc-leon-vatthauer/Makefile

22 lines
No EOL
572 B
Makefile

.PHONY: all clean pandoc
all: agda
make pandoc
pandoc: public/*.md
@$(foreach file,$^, \
pandoc $(file) -s -c Agda.css -o $(file:.md=.html) ; \
)
agda : Everything.agda
agda --html --html-dir=public Everything.agda --html-highlight=auto -i.
clean:
rm Everything.agda
rm -rf public/*
open:
firefox public/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