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
|
ANDROID_ASSETS_DIRECTORY = assets
ANDROID_BINARIES_DIRECTORY = bin
ANDROID_LIBRARIES_DIRECTORY = libs
ANDROID_PLATFORM_NAME = armeabi
ANDROID_PACKAGE_FILE = $(ANDROID_BINARIES_DIRECTORY)/$(ANDROID_PACKAGE_NAME)-debug.apk
ANDROID_LOCAL_FILES = local.properties
ANDROID_PLATFORM_DIRECTORY = $(ANDROID_LIBRARIES_DIRECTORY)/$(ANDROID_PLATFORM_NAME)
all: $(ANDROID_PACKAGE_FILE)
$(ANDROID_PACKAGE_FILE): $(ANDROID_LOCAL_FILES)
ant debug
$(ANDROID_LOCAL_FILES):
android update project --path .
clean::
-rm -f $(ANDROID_LOCAL_FILES)
-rm -f -r $(ANDROID_ASSETS_DIRECTORY)
-rm -f -r $(ANDROID_BINARIES_DIRECTORY)
-rm -f -r $(ANDROID_LIBRARIES_DIRECTORY)
-rm -f -r gen
install: all
adb install $(ANDROID_PACKAGE_FILE)
reinstall: all
adb install -r $(ANDROID_PACKAGE_FILE)
uninstall:
adb uninstall $(ANDROID_PACKAGE_PATH)
|