]> matita.cs.unibo.it Git - helm.git/blob - helm/software/matita/nlibrary/topology/Makefile
batch pdf generation
[helm.git] / helm / software / matita / nlibrary / topology / Makefile
1 SRC=igft.ma
2
3 all: $(SRC:%.ma=%.html)
4
5 print: $(SRC:%.ma=%.pdf)
6
7 %.pdf: %.html
8         # requires http://torisugari.googlepages.com/commandlineprint2
9         iceweasel -print $< -printmode pdf -printfile ./$@
10
11 clean:
12         rm *.html *.png *.mdwn
13
14 %.html: %.ma convert.awk preamble.xml postamble.xml
15         cat preamble.xml > $@
16         awk -f convert.awk < $< > $*.mdwn
17         markdown < $*.mdwn >> $@
18         cat postamble.xml >> $@
19