git.iko.soy/typeable/cabal2nix
on v1.68 help sign in
typeable/cabal2nix/doc/GNUmakefile
25 lines 514 B history raw
1# doc/GNUmakefile
3PANDOC_FLAGS := --smart -V papersize:"a4paper"
5.PHONY: all clean
7all: hal8.pdf hal8.html hal8-folien.pdf
9%.tex : %.md
10 pandoc -s $(PANDOC_FLAGS) -f markdown -t latex $< -o $@
12%.html : %.md
13 pandoc -s $(PANDOC_FLAGS) -f markdown -t html $< -o $@
15%.pdf : %.tex
16 pdflatex $<
17 while grep -i >/dev/null "rerun to.*get.*right" $*.log; do \
18 pdflatex $<; \
19 done
21hal8-folien.pdf : hal8-folien.md
22 pandoc -t beamer $< -o $@
24clean:
25 @rm -f hal8.aux hal8.html hal8.log hal8.out hal8.pdf hal8.toc