0
|
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'
|
170
|
7 ifeq ($(style),release)
|
171
|
8 debuggable=false
|
170
|
9 else
|
171
|
10 debuggable=true
|
170
|
11 endif
|
|
12
|
0
|
13
|
|
14 all:
|
73
accf93be8c12
update documentation; use xterm-256color as default terminal type
Carl Byington <carl@five-ten-sg.com>
diff
changeset
|
15 hg pull; hg update
|
accf93be8c12
update documentation; use xterm-256color as default terminal type
Carl Byington <carl@five-ten-sg.com>
diff
changeset
|
16 make builder
|
accf93be8c12
update documentation; use xterm-256color as default terminal type
Carl Byington <carl@five-ten-sg.com>
diff
changeset
|
17
|
accf93be8c12
update documentation; use xterm-256color as default terminal type
Carl Byington <carl@five-ten-sg.com>
diff
changeset
|
18 builder:
|
170
|
19 sed -i -e 's/android:debuggable=".*"/android:debuggable="$(debuggable)"/g' AndroidManifest.xml
|
74
|
20 rm -rf gen bin
|
0
|
21 ndk-build clean; V=1 ndk-build
|
|
22 android update project -p . -t android-16
|
|
23 ant $(style)
|
|
24
|
|
25 genkey:
|
1
|
26 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
|
0
|
27
|
|
28 docs:
|
|
29 (cd xml; make)
|
|
30
|
|
31 install:
|
|
32 cp $(apk) $(dest)
|
|
33 ls -al $(apk) $(dest)
|
|
34
|
116
|
35 buildicon:
|
159
|
36 cp -a base.510.icon.png res/drawable-xxxhdpi/icon.png
|
|
37 convert base.510.icon.png -resize 144x144 res/drawable-xxhdpi/icon.png
|
|
38 convert base.510.icon.png -resize 96x96 res/drawable-xhdpi/icon.png
|
|
39 convert base.510.icon.png -resize 72x72 res/drawable-hdpi/icon.png
|
|
40 convert base.510.icon.png -resize 48x48 res/drawable-mdpi/icon.png
|
|
41 convert base.510.icon.png -resize 36x36 res/drawable-ldpi/icon.png
|
116
|
42
|
159
|
43 convert res/drawable-xxxhdpi/icon.png -resize 50% -colorspace Gray res/drawable-xxxhdpi/notification_icon.png
|
|
44 convert res/drawable-xxhdpi/icon.png -resize 50% -colorspace Gray res/drawable-xxhdpi/notification_icon.png
|
|
45 convert res/drawable-xhdpi/icon.png -resize 50% -colorspace Gray res/drawable-xhdpi/notification_icon.png
|
|
46 convert res/drawable-hdpi/icon.png -resize 50% -colorspace Gray res/drawable-hdpi/notification_icon.png
|
|
47 convert res/drawable-mdpi/icon.png -resize 50% -colorspace Gray res/drawable-mdpi/notification_icon.png
|
|
48 convert res/drawable-ldpi/icon.png -resize 50% -colorspace Gray res/drawable-ldpi/notification_icon.png
|
0
|
49
|
|
50 indentc:
|
|
51 indent --line-length100 \
|
|
52 --brace-indent4 \
|
|
53 --braces-on-if-line \
|
|
54 --braces-on-func-def-line \
|
|
55 --case-brace-indentation4 \
|
|
56 --case-indentation4 \
|
|
57 --comment-indentation60 \
|
|
58 --cuddle-else \
|
|
59 --declaration-comment-column60 \
|
|
60 --no-tabs \
|
|
61 -nbbo \
|
|
62 -npcs \
|
|
63 -nprs \
|
|
64 -npsl \
|
|
65 -saf -sai -saw \
|
|
66 -i4 \
|
|
67 $(shell find . -iname *.c -o -iname *.h -o -iname *.cpp)
|
|
68
|
|
69
|
|
70 indentjava:
|
|
71 astyle --style=java \
|
|
72 --attach-namespaces \
|
|
73 --attach-classes \
|
|
74 --indent-classes \
|
|
75 --indent-switches \
|
|
76 --indent-cases \
|
|
77 --indent-namespaces \
|
|
78 --break-blocks \
|
|
79 --pad-oper \
|
|
80 --pad-header \
|
|
81 --unpad-paren \
|
|
82 --delete-empty-lines \
|
|
83 --align-pointer=type \
|
|
84 --break-closing-brackets \
|
|
85 --keep-one-line-blocks \
|
|
86 --keep-one-line-statements \
|
|
87 --convert-tabs \
|
|
88 --break-after-logical \
|
|
89 --mode=java \
|
|
90 $(shell find . -iname *.java | grep -v /gen/)
|
|
91
|
|
92 internaldocs:
|
|
93 doxygen
|