automatically put gcode to sd card and unmount it
[challenge-bot] / Makefile
index d1a5785c96e9df8b52e91839d9fde08fe9f78d92..6a6f5b39d279271428f591a81a5c442c797f86aa 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -10,12 +10,35 @@ all: ${HTMLS} ${PDFS}
        echo HTMLS=${HTMLS}
        echo PDFS=${PDFS}
 
+astyle:
+       astyle \
+        --mode=c \
+        --style=lisp \
+        --indent=spaces=2 \
+        --recursive '*.ino' \
+        --pad-oper \
+        --add-brackets \
+        --convert-tabs \
+        --max-code-length=80 \
+        --line-end=linux
+
 initial-ubuntu-install:
        sudo apt-get install -y qrencode fritzing openscad
 
+uuid:
+       uuid -v4
+
 index.html: README.html
        cp $< $@
 
+qr-sticker-paper.pdf: qr qr-sticker-paper.tex
+       pdflatex qr-sticker-paper.tex
+
+qr.png: qr
+
+qr:
+       qrencode -s 6 -l L -v 1 -o qr.png "xib.me/rmmt"
+
 qrcode:
        qrencode -l L -v 1 -o qr.png "xib.me/rmmt"