summaryrefslogtreecommitdiff
path: root/Makefile
blob: f8f86efa9e25c6327e5114bbe7cbb6e873e0bf58 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
SDK=../android-sdk-linux

DX=$(SDK)/platform-tools/dx
ADB=$(SDK)/platform-tools/adb
AAPT=$(SDK)/platform-tools/aapt
APKBUILDER=$(SDK)/tools/apkbuilder
ZIPALIGN=$(SDK)/tools/zipalign

SRC_DIR=src/org/altusmetrum/AltosDroid

SRC=\
	$(SRC_DIR)/AltosDroid.java \
	$(SRC_DIR)/BluetoothChatService.java \
	$(SRC_DIR)/DeviceListActivity.java

all: bin/AltosDroid-debug.apk bin/AltosDroid-release.apk

install-release: bin/AltosDroid-release.apk
	$(ADB) install -r bin/AltosDroid-release.apk

install-debug: bin/AltosDroid-debug.apk
	$(ADB) install -r bin/AltosDroid-debug.apk

bin/AltosDroid-debug.apk: $(SRC)
	ant debug

bin/AltosDroid-release.apk: $(SRC)
	ant release

clean:
	ant clean