First draft for clippy sonar
[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 astyle:
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
25 initial-ubuntu-install:
26 sudo apt-get install -y qrencode fritzing openscad
27
28 uuid:
29 uuid -v4
30
31 index.html: README.html
32 cp $< $@
33
34 qr-sticker-paper.pdf: qr qr-sticker-paper.tex
35 pdflatex qr-sticker-paper.tex
36
37 qr.png: qr
38
39 qr:
40 qrencode -s 6 -l L -v 1 -o qr.png "challenge-bot.com"
41
42 qrcode:
43 qrencode -l L -v 1 -o qr.png "challenge-bot.com"
44
45 qrcode-large:
46 qrencode -l L -v 1 -o qr-large.png "https://gitorious.org/ozzloy/challenge-bot"
47
48 clean:
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 $@ $<