.PHONY: all clean all: agda make pandoc open: firefox ./public/algebra.html agda: Everything.agda agda --html --html-dir=public algebra.lagda.md --html-highlight=auto -i. rm -f public/Agda.css cp Agda.css public/Agda.css pandoc: public/*.md @$(foreach file,$^, \ pandoc $(file) -s --to=html+TEX_MATH_DOLLARS --mathjax -c Agda.css -o $(file:.md=.html) ; \ ) clean: rm -f Everything.agda rm -rf public/* find . -name '*.agdai' -exec rm \{\} \; 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