2018-04-22 12:10:27 +02:00
|
|
|
.PHONY: run pdf ghci
|
|
|
|
|
|
|
|
INPUT = sketch.md.lhs
|
2018-05-07 00:44:12 +02:00
|
|
|
TWOPIS = $(wildcard *.twopi)
|
|
|
|
|
|
|
|
png: $(TWOPIS:.twopi=.png)
|
|
|
|
|
|
|
|
%.png : %.twopi
|
|
|
|
twopi -Tpng -Goverlap=scale -o $@ $<
|
2018-04-22 12:10:27 +02:00
|
|
|
|
|
|
|
pdf: $(INPUT)
|
2018-04-23 00:22:21 +02: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 12:10:27 +02:00
|
|
|
|
|
|
|
|
|
|
|
run: $(INPUT)
|
|
|
|
runhaskell $(INPUT)
|
|
|
|
|
|
|
|
ghci: $(INPUT)
|
|
|
|
ghci $(INPUT)
|