ignore downloads folder
[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
b3053d46
WG
28index.html: README.html
29 cp $< $@
30
04a122b7 31qr-sticker-paper.pdf: qr qr-sticker-paper.tex
32 pdflatex qr-sticker-paper.tex
33
d4de6d4c 34qr.png: qr
35
36qr:
04a122b7 37 qrencode -s 6 -l L -v 1 -o qr.png "xib.me/rmmt"
38
d17307a8 39qrcode:
d4de6d4c 40 qrencode -l L -v 1 -o qr.png "xib.me/rmmt"
d17307a8 41
64c08187 42qrcode-large:
43 qrencode -l L -v 1 -o qr-large.png "https://gitorious.org/ozzloy/challenge-bot"
d17307a8 44
b3053d46 45clean:
3f827760 46 rm -f ${HTMLS} ${PDFS} 3d-printables/*.gcode \
47 3d-printables/*.x3g 3d-printables/*.stl
b3053d46
WG
48
49%.html: %.md
50 markdown $< > $@
51
52%.pdf: %.html
a941f5d5 53 htmldoc --numbered --book --no-title --header /// -f $@ $<