comparison Makefile @ 0:0ce5cc452d02

initial version
author Carl Byington <carl@five-ten-sg.com>
date Thu, 22 May 2014 10:41:19 -0700
parents
children ab7313512aba
comparison
equal deleted inserted replaced
-1:000000000000 0:0ce5cc452d02
1 #mc40 is "On Device Storage"
2 #tc55 is "Internal Storage"
3
4 style=release
5 dest=/run/user/1000/gvfs/mtp*/*torage/Download
6 apk='bin/510Connectbot-$(style).apk'
7
8 all:
9 hg pull; hg update; rm -rf gen bin
10 ndk-build clean; V=1 ndk-build
11 android update project -p . -t android-16
12 ant $(style)
13
14 genkey:
15 keytool -genkeypair -keystore 510Connectbot.keystore -alias 510Connectbot -dname "cn=510Connectbot , ou=510Connectbot, o=five-ten-sg o=com, c=US" -keyalg RSA -keysize 2048 -validity 10000
16
17 docs:
18 (cd xml; make)
19
20 install:
21 cp $(apk) $(dest)
22 ls -al $(apk) $(dest)
23
24
25 indentc:
26 indent --line-length100 \
27 --brace-indent4 \
28 --braces-on-if-line \
29 --braces-on-func-def-line \
30 --case-brace-indentation4 \
31 --case-indentation4 \
32 --comment-indentation60 \
33 --cuddle-else \
34 --declaration-comment-column60 \
35 --no-tabs \
36 -nbbo \
37 -npcs \
38 -nprs \
39 -npsl \
40 -saf -sai -saw \
41 -i4 \
42 $(shell find . -iname *.c -o -iname *.h -o -iname *.cpp)
43
44
45 indentjava:
46 astyle --style=java \
47 --attach-namespaces \
48 --attach-classes \
49 --indent-classes \
50 --indent-switches \
51 --indent-cases \
52 --indent-namespaces \
53 --break-blocks \
54 --pad-oper \
55 --pad-header \
56 --unpad-paren \
57 --delete-empty-lines \
58 --align-pointer=type \
59 --break-closing-brackets \
60 --keep-one-line-blocks \
61 --keep-one-line-statements \
62 --convert-tabs \
63 --break-after-logical \
64 --mode=java \
65 $(shell find . -iname *.java | grep -v /gen/)
66
67 internaldocs:
68 doxygen
69