e32bfdb04f99bb525088cf2376bf1685b000e0e6
[challenge-bot] / Makefile
1 MARKDOWNS := \
2 README.md
3 HTMLS := \
4 ${MARKDOWNS:%.md=%.html} \
5 index.html
6 PDFS :=\
7 ${HTMLS:%.html=%.pdf}
8
9 all: ${HTMLS} ${PDFS}
10 echo HTMLS=${HTMLS}
11 echo PDFS=${PDFS}
12
13 index.html: README.html
14 cp $< $@
15
16 qrcode:
17 qrencode -l L -v 1 -o qr.png "http://tr.im/4lmn8"
18
19 qrcode-long:
20 qrencode -l L -v 1 -o qr.png "https://gitorious.org/ozzloy/challenge-bot"
21
22 clean:
23 rm -f ${HTMLS} ${PDFS} 3d-printables/*.gcode \
24 3d-printables/*.x3g 3d-printables/*.stl
25
26 %.html: %.md
27 markdown $< > $@
28
29 %.pdf: %.html
30 htmldoc --numbered --book --no-title --header /// -f $@ $<