summaryrefslogtreecommitdiff
path: root/altosdroid/Makefile.am
blob: 2c6ffc2ceb73b863d2a5c4e221795ecb10aa0974 (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
32
33
34
35
36
37
38
39
40
41
42
if ANDROID
all_target=bin/AltosDroid-debug.apk bin/AltosDroid-release.apk
clean_command=ant clean
else
all_target=
clean_command=echo done
endif

SDK=$(ANDROID_SDK)

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: $(all_target)

if ANDROID
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
endif

clean:
	$(clean_command)