summaryrefslogtreecommitdiff
path: root/altosdroid/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'altosdroid/Makefile.am')
-rw-r--r--altosdroid/Makefile.am16
1 files changed, 14 insertions, 2 deletions
diff --git a/altosdroid/Makefile.am b/altosdroid/Makefile.am
index 3860e110..39f3c2b6 100644
--- a/altosdroid/Makefile.am
+++ b/altosdroid/Makefile.am
@@ -17,7 +17,7 @@ ZIPALIGN=$(SDK)/tools/zipalign
SRC_DIR=src/org/altusmetrum/AltosDroid
EXT_LIBDIR=libs
ALTOSLIB_SRCDIR=../altoslib
-ALTOSLIB_JAR=AltosLib.jar
+ALTOSLIB_JAR=altoslib_$(ALTOSLIB_VERSION).jar
ALTOSLIB=$(EXT_LIBDIR)/$(ALTOSLIB_JAR)
@@ -54,9 +54,21 @@ bin/AltosDroid-debug.apk: $(SRC) $(ALTOSLIB)
bin/AltosDroid-release.apk: $(SRC) $(ALTOSLIB)
ant release
+
+sign:
+ jarsigner -keystore release.keystore \
+ -signedjar bin/AltosDroid-release-signed.apk \
+ bin/AltosDroid-release-unsigned.apk AltosDroid
+ $(SDK)/tools/zipalign -f 4 \
+ bin/AltosDroid-release-signed.apk \
+ bin/AltosDroid-release.apk
+
endif
-clean:
+clean: clean-local
$(clean_command)
+clean-local:
+ rm -rf $(EXT_LIBDIR)
+
.PHONY: $(SRC_DIR)/BuildInfo.java