make initial setup easier on ubuntu
[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 initial-ubuntu-install:
14 sudo apt-get install -y qrencode fritzing openscad
15
16 index.html: README.html
17 cp $< $@
18
19 qrcode:
20 qrencode -l L -v 1 -o qr.png "http://tr.im/4lmn8"
21
22 qrcode-long:
23 qrencode -l L -v 1 -o qr.png "https://gitorious.org/ozzloy/challenge-bot"
24
25 clean:
26 rm -f ${HTMLS} ${PDFS} 3d-printables/*.gcode \
27 3d-printables/*.x3g 3d-printables/*.stl
28
29 %.html: %.md
30 markdown $< > $@
31
32 %.pdf: %.html
33 htmldoc --numbered --book --no-title --header /// -f $@ $<