comparison 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
comparison
equal deleted inserted replaced
14:0ccc5139199c 15:357bbbbcf201
2 #tc55 is "Internal Storage" 2 #tc55 is "Internal Storage"
3 3
4 style=release 4 style=release
5 dest=/run/user/1000/gvfs/mtp*/*torage/Download 5 dest=/run/user/1000/gvfs/mtp*/*torage/Download
6 apk='bin/510ConnectbotMonitor-$(style).apk' 6 apk='bin/510ConnectbotMonitor-$(style).apk'
7 ifeq ($(style),release)
8 debuggable=false
9 else
10 debuggable=true
11 endif
7 12
8 all: 13 all:
9 hg pull; hg update 14 hg pull; hg update
10 make builder 15 make builder
11 16
12 builder: 17 builder:
18 sed -i -e 's/android:debuggable=".*"/android:debuggable="$(debuggable)"/g' AndroidManifest.xml
13 rm -rf gen bin 19 rm -rf gen bin
14 android update project -p . -t android-16 20 android update project -p . -t android-16
15 ant $(style) 21 ant $(style)
16 22
17 install: 23 install: