diff options
| -rw-r--r-- | altosdroid/Makefile.am | 42 | 
1 files changed, 42 insertions, 0 deletions
| diff --git a/altosdroid/Makefile.am b/altosdroid/Makefile.am new file mode 100644 index 00000000..2c6ffc2c --- /dev/null +++ b/altosdroid/Makefile.am @@ -0,0 +1,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) + | 
