.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. mv public/Everything.html public/index.html clean: rm -f Everything.agda rm -rf public/* find . -name '*.agdai' -exec rm \{\} \; open: firefox public/Everything.html # push compiled html to my cip directory push: all push' # just push without building 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 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