add rule to beautify code easily
[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 --mode=c --style=lisp --indent=spaces=2 --recursive '*.ino'
15
16 initial-ubuntu-install:
17 sudo apt-get install -y qrencode fritzing openscad
18
19 index.html: README.html
20 cp $< $@
21
22 qr-sticker-paper.pdf: qr qr-sticker-paper.tex
23 pdflatex qr-sticker-paper.tex
24
25 qr: qr.png
26 qrencode -s 6 -l L -v 1 -o qr.png "xib.me/rmmt"
27
28 qrcode:
29 qrencode -l L -v 1 -o qr.png "goo.gl/JfVqUJ"
30
31 qrcode-large:
32 qrencode -l L -v 1 -o qr-large.png "https://gitorious.org/ozzloy/challenge-bot"
33
34 clean:
35 rm -f ${HTMLS} ${PDFS} 3d-printables/*.gcode \
36 3d-printables/*.x3g 3d-printables/*.stl
37
38 %.html: %.md
39 markdown $< > $@
40
41 %.pdf: %.html
42 htmldoc --numbered --book --no-title --header /// -f $@ $<