define wiring in separate file
[challenge-bot] / Makefile
... / ...
CommitLineData
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
13astyle:
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
24
25initial-ubuntu-install:
26 sudo apt-get install -y qrencode fritzing openscad
27
28uuid:
29 uuid -v4
30
31index.html: README.html
32 cp $< $@
33
34qr-sticker-paper.pdf: qr qr-sticker-paper.tex
35 pdflatex qr-sticker-paper.tex
36
37qr.png: qr
38
39qr:
40 qrencode -s 6 -l L -v 1 -o qr.png "challenge-bot.com"
41
42qrcode:
43 qrencode -l L -v 1 -o qr.png "challenge-bot.com"
44
45qrcode-large:
46 qrencode -l L -v 1 -o qr-large.png "https://gitorious.org/ozzloy/challenge-bot"
47
48clean:
49 rm -f ${HTMLS} ${PDFS} 3d-printables/*.gcode \
50 3d-printables/*.x3g 3d-printables/*.stl
51
52%.html: %.md
53 markdown $< > $@
54
55%.pdf: %.html
56 htmldoc --numbered --book --no-title --header /// -f $@ $<