2018-04-22 10:10:27 +00:00
|
|
|
.PHONY: run pdf ghci
|
|
|
|
|
|
|
|
INPUT = sketch.md.lhs
|
2018-05-06 22:44:12 +00:00
|
|
|
TWOPIS = $(wildcard *.twopi)
|
|
|
|
|
|
|
|
png: $(TWOPIS:.twopi=.png)
|
|
|
|
|
|
|
|
%.png : %.twopi
|
|
|
|
twopi -Tpng -Goverlap=scale -o $@ $<
|
2018-04-22 10:10:27 +00:00
|
|
|
|
|
|
|
pdf: $(INPUT)
|
2018-04-22 22:22:21 +00:00
|
|
|
pandoc -f markdown+lhs+smart+emoji -H make-code-footnotesize.tex \
|
|
|
|
-o documentation.pdf $(INPUT)
|
|
|
|
|
|
|
|
slides: $(INPUT)
|
|
|
|
pandoc -f markdown+lhs+smart+emoji -t revealjs --self-contained --incremental \
|
|
|
|
-o documentation.html $(INPUT)
|
2018-04-22 10:10:27 +00:00
|
|
|
|
|
|
|
|
|
|
|
run: $(INPUT)
|
|
|
|
runhaskell $(INPUT)
|
|
|
|
|
|
|
|
ghci: $(INPUT)
|
|
|
|
ghci $(INPUT)
|