Mercurial > 510ConnectbotMonitor
annotate Makefile @ 15:357bbbbcf201
set debuggable flag depending on build style
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Sun, 29 Jun 2014 12:43:35 -0700 |
parents | f769411a72ce |
children | 807f7e4eaebe |
rev | line source |
---|---|
0 | 1 #mc40 is "On Device Storage" |
2 #tc55 is "Internal Storage" | |
3 | |
10
f769411a72ce
setup for signed release builds
Carl Byington <carl@five-ten-sg.com>
parents:
8
diff
changeset
|
4 style=release |
0 | 5 dest=/run/user/1000/gvfs/mtp*/*torage/Download |
10
f769411a72ce
setup for signed release builds
Carl Byington <carl@five-ten-sg.com>
parents:
8
diff
changeset
|
6 apk='bin/510ConnectbotMonitor-$(style).apk' |
15
357bbbbcf201
set debuggable flag depending on build style
Carl Byington <carl@five-ten-sg.com>
parents:
10
diff
changeset
|
7 ifeq ($(style),release) |
357bbbbcf201
set debuggable flag depending on build style
Carl Byington <carl@five-ten-sg.com>
parents:
10
diff
changeset
|
8 debuggable=false |
357bbbbcf201
set debuggable flag depending on build style
Carl Byington <carl@five-ten-sg.com>
parents:
10
diff
changeset
|
9 else |
357bbbbcf201
set debuggable flag depending on build style
Carl Byington <carl@five-ten-sg.com>
parents:
10
diff
changeset
|
10 debuggable=true |
357bbbbcf201
set debuggable flag depending on build style
Carl Byington <carl@five-ten-sg.com>
parents:
10
diff
changeset
|
11 endif |
0 | 12 |
13 all: | |
10
f769411a72ce
setup for signed release builds
Carl Byington <carl@five-ten-sg.com>
parents:
8
diff
changeset
|
14 hg pull; hg update |
f769411a72ce
setup for signed release builds
Carl Byington <carl@five-ten-sg.com>
parents:
8
diff
changeset
|
15 make builder |
f769411a72ce
setup for signed release builds
Carl Byington <carl@five-ten-sg.com>
parents:
8
diff
changeset
|
16 |
f769411a72ce
setup for signed release builds
Carl Byington <carl@five-ten-sg.com>
parents:
8
diff
changeset
|
17 builder: |
15
357bbbbcf201
set debuggable flag depending on build style
Carl Byington <carl@five-ten-sg.com>
parents:
10
diff
changeset
|
18 sed -i -e 's/android:debuggable=".*"/android:debuggable="$(debuggable)"/g' AndroidManifest.xml |
10
f769411a72ce
setup for signed release builds
Carl Byington <carl@five-ten-sg.com>
parents:
8
diff
changeset
|
19 rm -rf gen bin |
0 | 20 android update project -p . -t android-16 |
10
f769411a72ce
setup for signed release builds
Carl Byington <carl@five-ten-sg.com>
parents:
8
diff
changeset
|
21 ant $(style) |
0 | 22 |
23 install: | |
24 cp $(apk) $(dest) | |
25 ls -al $(apk) $(dest) | |
26 | |
8 | 27 buildicon: |
28 cp -a base.510.icon.png res/drawable-xxxhdpi/icon.png | |
29 convert base.510.icon.png -resize 144x144 res/drawable-xxhdpi/icon.png | |
30 convert base.510.icon.png -resize 96x96 res/drawable-xhdpi/icon.png | |
31 convert base.510.icon.png -resize 72x72 res/drawable-hdpi/icon.png | |
32 convert base.510.icon.png -resize 48x48 res/drawable-mdpi/icon.png | |
33 convert base.510.icon.png -resize 36x36 res/drawable-ldpi/icon.png | |
34 | |
35 convert res/drawable-xxxhdpi/icon.png -resize 50% -colorspace Gray res/drawable-xxxhdpi/notification_icon.png | |
36 convert res/drawable-xxhdpi/icon.png -resize 50% -colorspace Gray res/drawable-xxhdpi/notification_icon.png | |
37 convert res/drawable-xhdpi/icon.png -resize 50% -colorspace Gray res/drawable-xhdpi/notification_icon.png | |
38 convert res/drawable-hdpi/icon.png -resize 50% -colorspace Gray res/drawable-hdpi/notification_icon.png | |
39 convert res/drawable-mdpi/icon.png -resize 50% -colorspace Gray res/drawable-mdpi/notification_icon.png | |
40 convert res/drawable-ldpi/icon.png -resize 50% -colorspace Gray res/drawable-ldpi/notification_icon.png | |
41 | |
0 | 42 indentc: |
43 indent --line-length100 \ | |
44 --brace-indent4 \ | |
45 --braces-on-if-line \ | |
46 --braces-on-func-def-line \ | |
47 --case-brace-indentation4 \ | |
48 --case-indentation4 \ | |
49 --comment-indentation60 \ | |
50 --cuddle-else \ | |
51 --declaration-comment-column60 \ | |
52 --no-tabs \ | |
53 -nbbo \ | |
54 -npcs \ | |
55 -nprs \ | |
56 -npsl \ | |
57 -saf -sai -saw \ | |
58 -i4 \ | |
59 $(shell find . -iname *.c -o -iname *.h -o -iname *.cpp) | |
60 | |
61 indentjava: | |
62 astyle --style=java \ | |
63 --attach-namespaces \ | |
64 --attach-classes \ | |
65 --indent-classes \ | |
66 --indent-switches \ | |
67 --indent-cases \ | |
68 --indent-namespaces \ | |
69 --break-blocks \ | |
70 --pad-oper \ | |
71 --pad-first-paren-out \ | |
72 --pad-header \ | |
73 --unpad-paren \ | |
74 --delete-empty-lines \ | |
75 --align-pointer=type \ | |
76 --break-closing-brackets \ | |
77 --keep-one-line-blocks \ | |
78 --keep-one-line-statements \ | |
79 --convert-tabs \ | |
80 --break-after-logical \ | |
81 --mode=java \ | |
82 $(shell find . -iname *.java | grep -v /gen/) | |
83 | |
84 docs: | |
1 | 85 (cd xml; make) |
86 |