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