svgs for all but metal parts
[challenge-bot] / Makefile
CommitLineData
b3053d46
WG
1MARKDOWNS := \
2 README.md
3HTMLS := \
4 ${MARKDOWNS:%.md=%.html} \
5 index.html
6PDFS :=\
7 ${HTMLS:%.html=%.pdf}
8
9all: ${HTMLS} ${PDFS}
10 echo HTMLS=${HTMLS}
11 echo PDFS=${PDFS}
12
c1ed0e61 13astyle:
dccb2777 14 astyle \
15 --mode=c \
16 --style=lisp \
17 --indent=spaces=2 \
18 --recursive '*.ino' \
19 --pad-oper \
20 --add-brackets \
21 --convert-tabs \
22 --max-code-length=80 \
23 --line-end=linux
c1ed0e61 24
b6541363 25initial-ubuntu-install:
26 sudo apt-get install -y qrencode fritzing openscad
27
7dd68296 28uuid:
29 uuid -v4
30
b3053d46
WG
31index.html: README.html
32 cp $< $@
33
04a122b7 34qr-sticker-paper.pdf: qr qr-sticker-paper.tex
35 pdflatex qr-sticker-paper.tex
36
d4de6d4c 37qr.png: qr
38
39qr:
d1a8a95f 40 qrencode -s 6 -l L -v 1 -o qr.png "challenge-bot.com"
04a122b7 41
d17307a8 42qrcode:
d1a8a95f 43 qrencode -l L -v 1 -o qr.png "challenge-bot.com"
d17307a8 44
64c08187 45qrcode-large:
46 qrencode -l L -v 1 -o qr-large.png "https://gitorious.org/ozzloy/challenge-bot"
d17307a8 47
b3053d46 48clean:
3f827760 49 rm -f ${HTMLS} ${PDFS} 3d-printables/*.gcode \
50 3d-printables/*.x3g 3d-printables/*.stl
b3053d46
WG
51
52%.html: %.md
53 markdown $< > $@
54
55%.pdf: %.html
a941f5d5 56 htmldoc --numbered --book --no-title --header /// -f $@ $<