Mercurial > 510Connectbot
annotate Makefile @ 458:ad275ce23092
Added tag stable-1.9.3-3 for changeset 105815cce146
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Tue, 29 Jan 2019 11:22:19 -0800 |
parents | 105815cce146 |
children | a3239022798d |
rev | line source |
---|---|
0 | 1 #mc40 is "On Device Storage" |
2 #tc55 is "Internal Storage" | |
3 | |
438
d29cce60f393
migrate from Eclipse to Android Studio
Carl Byington <carl@five-ten-sg.com>
parents:
430
diff
changeset
|
4 style:=release |
d29cce60f393
migrate from Eclipse to Android Studio
Carl Byington <carl@five-ten-sg.com>
parents:
430
diff
changeset
|
5 dest:=/run/user/1000/gvfs/mtp*/*torage/Download |
444
5a74f1b7c1db
migrate from Eclipse to Android Studio
Carl Byington <carl@five-ten-sg.com>
parents:
443
diff
changeset
|
6 ver:=$(shell grep versionName app/src/main/AndroidManifest.xml | cut -d'"' -f2) |
455
3f24984b435f
use version as part of final filename
Carl Byington <carl@five-ten-sg.com>
parents:
454
diff
changeset
|
7 apk:='app/build/outputs/apk/510Connectbot-$(ver).apk' |
444
5a74f1b7c1db
migrate from Eclipse to Android Studio
Carl Byington <carl@five-ten-sg.com>
parents:
443
diff
changeset
|
8 id:=$(shell hg id --id || echo 1) |
5a74f1b7c1db
migrate from Eclipse to Android Studio
Carl Byington <carl@five-ten-sg.com>
parents:
443
diff
changeset
|
9 da:=$(shell date +%Y-%m-%d) |
438
d29cce60f393
migrate from Eclipse to Android Studio
Carl Byington <carl@five-ten-sg.com>
parents:
430
diff
changeset
|
10 version:=\ |
d29cce60f393
migrate from Eclipse to Android Studio
Carl Byington <carl@five-ten-sg.com>
parents:
430
diff
changeset
|
11 <?xml version=\"1.0\" encoding=\"utf-8\"?>\n\ |
d29cce60f393
migrate from Eclipse to Android Studio
Carl Byington <carl@five-ten-sg.com>
parents:
430
diff
changeset
|
12 <resources>\n\ |
d29cce60f393
migrate from Eclipse to Android Studio
Carl Byington <carl@five-ten-sg.com>
parents:
430
diff
changeset
|
13 <string name=\"msg_version\" translatable=\"false\">510Connectbot $(ver) ($(id) $(da))</string>\n\ |
d29cce60f393
migrate from Eclipse to Android Studio
Carl Byington <carl@five-ten-sg.com>
parents:
430
diff
changeset
|
14 </resources>\n |
d29cce60f393
migrate from Eclipse to Android Studio
Carl Byington <carl@five-ten-sg.com>
parents:
430
diff
changeset
|
15 |
170
f0f41cd3604b
set debuggable flag depending on build style
Carl Byington <carl@five-ten-sg.com>
parents:
169
diff
changeset
|
16 ifeq ($(style),release) |
451
621313775834
only build arm package
Carl Byington <carl@five-ten-sg.com>
parents:
444
diff
changeset
|
17 task:=assembleArmRelease |
170
f0f41cd3604b
set debuggable flag depending on build style
Carl Byington <carl@five-ten-sg.com>
parents:
169
diff
changeset
|
18 else |
451
621313775834
only build arm package
Carl Byington <carl@five-ten-sg.com>
parents:
444
diff
changeset
|
19 task:=assembleArmDebug |
170
f0f41cd3604b
set debuggable flag depending on build style
Carl Byington <carl@five-ten-sg.com>
parents:
169
diff
changeset
|
20 endif |
f0f41cd3604b
set debuggable flag depending on build style
Carl Byington <carl@five-ten-sg.com>
parents:
169
diff
changeset
|
21 |
0 | 22 |
23 all: | |
73
accf93be8c12
update documentation; use xterm-256color as default terminal type
Carl Byington <carl@five-ten-sg.com>
parents:
1
diff
changeset
|
24 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
|
25 make builder |
accf93be8c12
update documentation; use xterm-256color as default terminal type
Carl Byington <carl@five-ten-sg.com>
parents:
1
diff
changeset
|
26 |
457
105815cce146
minimum version android 5, target and compile version api 28
Carl Byington <carl@five-ten-sg.com>
parents:
455
diff
changeset
|
27 builder: clean prep |
454
7492d2cb7b75
update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents:
451
diff
changeset
|
28 ANDROID_HOME=/home/carl/Android/Sdk ANDROID_NDK_HOME=/home/carl/Android/Sdk/ndk-bundle ./gradlew $(task) |
7492d2cb7b75
update to latest toolchain, gradle 4.10.2
Carl Byington <carl@five-ten-sg.com>
parents:
451
diff
changeset
|
29 mv app/build/outputs/apk/arm/$(style)/app-arm-$(style).apk $(apk) |
438
d29cce60f393
migrate from Eclipse to Android Studio
Carl Byington <carl@five-ten-sg.com>
parents:
430
diff
changeset
|
30 ls -al app/build/outputs/apk |
0 | 31 |
457
105815cce146
minimum version android 5, target and compile version api 28
Carl Byington <carl@five-ten-sg.com>
parents:
455
diff
changeset
|
32 clean: |
105815cce146
minimum version android 5, target and compile version api 28
Carl Byington <carl@five-ten-sg.com>
parents:
455
diff
changeset
|
33 rm -rf app/build/* |
105815cce146
minimum version android 5, target and compile version api 28
Carl Byington <carl@five-ten-sg.com>
parents:
455
diff
changeset
|
34 rm -rf app/.externalNativeBuild || true |
105815cce146
minimum version android 5, target and compile version api 28
Carl Byington <carl@five-ten-sg.com>
parents:
455
diff
changeset
|
35 |
362
d51bf957d955
add help files to the web documentation
Carl Byington <carl@five-ten-sg.com>
parents:
360
diff
changeset
|
36 prep: |
457
105815cce146
minimum version android 5, target and compile version api 28
Carl Byington <carl@five-ten-sg.com>
parents:
455
diff
changeset
|
37 echo -e "$(version)" >app/src/main/res/values/version.xml |
362
d51bf957d955
add help files to the web documentation
Carl Byington <carl@five-ten-sg.com>
parents:
360
diff
changeset
|
38 (cd help; make) |
d51bf957d955
add help files to the web documentation
Carl Byington <carl@five-ten-sg.com>
parents:
360
diff
changeset
|
39 |
0 | 40 genkey: |
1
ab7313512aba
missing comma in DN, regenerate keystore
Carl Byington <carl@five-ten-sg.com>
parents:
0
diff
changeset
|
41 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 | 42 |
43 docs: | |
44 (cd xml; make) | |
360
7eb24880b111
add help files to the web documentation
Carl Byington <carl@five-ten-sg.com>
parents:
332
diff
changeset
|
45 (cd help; make) |
0 | 46 |
47 install: | |
48 cp $(apk) $(dest) | |
49 ls -al $(apk) $(dest) | |
50 | |
116 | 51 buildicon: |
430
47de9ffed872
add feature icon for google play store
Carl Byington <carl@five-ten-sg.com>
parents:
378
diff
changeset
|
52 convert base.510.icon.png -background white -resize 500x500 -extent 1024x500 google.play.store/feature.510.icon.png |
438
d29cce60f393
migrate from Eclipse to Android Studio
Carl Byington <carl@five-ten-sg.com>
parents:
430
diff
changeset
|
53 cp -a base.510.icon.png app/src/main/res/drawable-xxxhdpi/icon.png |
d29cce60f393
migrate from Eclipse to Android Studio
Carl Byington <carl@five-ten-sg.com>
parents:
430
diff
changeset
|
54 convert base.510.icon.png -resize 144x144 app/src/main/res/drawable-xxhdpi/icon.png |
d29cce60f393
migrate from Eclipse to Android Studio
Carl Byington <carl@five-ten-sg.com>
parents:
430
diff
changeset
|
55 convert base.510.icon.png -resize 96x96 app/src/main/res/drawable-xhdpi/icon.png |
d29cce60f393
migrate from Eclipse to Android Studio
Carl Byington <carl@five-ten-sg.com>
parents:
430
diff
changeset
|
56 convert base.510.icon.png -resize 72x72 app/src/main/res/drawable-hdpi/icon.png |
d29cce60f393
migrate from Eclipse to Android Studio
Carl Byington <carl@five-ten-sg.com>
parents:
430
diff
changeset
|
57 convert base.510.icon.png -resize 48x48 app/src/main/res/drawable-mdpi/icon.png |
d29cce60f393
migrate from Eclipse to Android Studio
Carl Byington <carl@five-ten-sg.com>
parents:
430
diff
changeset
|
58 convert base.510.icon.png -resize 36x36 app/src/main/res/drawable-ldpi/icon.png |
116 | 59 |
438
d29cce60f393
migrate from Eclipse to Android Studio
Carl Byington <carl@five-ten-sg.com>
parents:
430
diff
changeset
|
60 convert app/src/main/res/drawable-xxxhdpi/icon.png -resize 50% -colorspace Gray app/src/main/res/drawable-xxxhdpi/notification_icon.png |
d29cce60f393
migrate from Eclipse to Android Studio
Carl Byington <carl@five-ten-sg.com>
parents:
430
diff
changeset
|
61 convert app/src/main/res/drawable-xxhdpi/icon.png -resize 50% -colorspace Gray app/src/main/res/drawable-xxhdpi/notification_icon.png |
d29cce60f393
migrate from Eclipse to Android Studio
Carl Byington <carl@five-ten-sg.com>
parents:
430
diff
changeset
|
62 convert app/src/main/res/drawable-xhdpi/icon.png -resize 50% -colorspace Gray app/src/main/res/drawable-xhdpi/notification_icon.png |
d29cce60f393
migrate from Eclipse to Android Studio
Carl Byington <carl@five-ten-sg.com>
parents:
430
diff
changeset
|
63 convert app/src/main/res/drawable-hdpi/icon.png -resize 50% -colorspace Gray app/src/main/res/drawable-hdpi/notification_icon.png |
d29cce60f393
migrate from Eclipse to Android Studio
Carl Byington <carl@five-ten-sg.com>
parents:
430
diff
changeset
|
64 convert app/src/main/res/drawable-mdpi/icon.png -resize 50% -colorspace Gray app/src/main/res/drawable-mdpi/notification_icon.png |
d29cce60f393
migrate from Eclipse to Android Studio
Carl Byington <carl@five-ten-sg.com>
parents:
430
diff
changeset
|
65 convert app/src/main/res/drawable-ldpi/icon.png -resize 50% -colorspace Gray app/src/main/res/drawable-ldpi/notification_icon.png |
0 | 66 |
67 indentc: | |
68 indent --line-length100 \ | |
69 --brace-indent4 \ | |
70 --braces-on-if-line \ | |
71 --braces-on-func-def-line \ | |
72 --case-brace-indentation4 \ | |
73 --case-indentation4 \ | |
74 --comment-indentation60 \ | |
75 --cuddle-else \ | |
76 --declaration-comment-column60 \ | |
77 --no-tabs \ | |
78 -nbbo \ | |
79 -npcs \ | |
80 -nprs \ | |
81 -npsl \ | |
82 -saf -sai -saw \ | |
83 -i4 \ | |
84 $(shell find . -iname *.c -o -iname *.h -o -iname *.cpp) | |
85 | |
86 | |
87 indentjava: | |
88 astyle --style=java \ | |
89 --attach-namespaces \ | |
90 --attach-classes \ | |
91 --indent-classes \ | |
92 --indent-switches \ | |
93 --indent-cases \ | |
94 --indent-namespaces \ | |
95 --break-blocks \ | |
332 | 96 --unpad-paren \ |
0 | 97 --pad-oper \ |
98 --pad-header \ | |
99 --delete-empty-lines \ | |
100 --align-pointer=type \ | |
101 --break-closing-brackets \ | |
102 --keep-one-line-blocks \ | |
103 --keep-one-line-statements \ | |
104 --convert-tabs \ | |
105 --break-after-logical \ | |
106 --mode=java \ | |
107 $(shell find . -iname *.java | grep -v /gen/) | |
108 | |
109 internaldocs: | |
110 doxygen |