add more options for code formatting by astyle
authordaniel watson <ozzloy@gmail.com>
Sun, 6 Jul 2014 04:26:21 +0000 (21:26 -0700)
committerdaniel watson <ozzloy@gmail.com>
Sun, 6 Jul 2014 04:26:21 +0000 (21:26 -0700)
Makefile

index 04bec718cbe0b40f62fd5f3c9e566d5ad153b8fc..9b98e69a236c01ec6de75fbb065f2374b268f89c 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -11,7 +11,16 @@ all: ${HTMLS} ${PDFS}
        echo PDFS=${PDFS}
 
 astyle:
-       astyle --mode=c --style=lisp --indent=spaces=2 --recursive '*.ino'
+       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