altosdroid: adjust release Makefile target
authorMike Beattie <mike@ethernal.org>
Thu, 7 Mar 2013 07:49:41 +0000 (20:49 +1300)
committerMike Beattie <mike@ethernal.org>
Thu, 7 Mar 2013 07:49:41 +0000 (20:49 +1300)
* Rename target
* Add dependency on unsigned release APK
* use $(ZIPALIGN) variable

Signed-off-by: Mike Beattie <mike@ethernal.org>
altosdroid/Makefile.am

index d21cacd87558c6227a69409875cafd9bc50d07ec..3dbabdd7361603595e11c9becdb538dd077a528d 100644 (file)
@@ -72,11 +72,11 @@ bin/AltosDroid-debug.apk: $(SRC) $(ALTOSLIB) $(SUPPORT_V4) $(GOOGLE_PLAY_SERVICE
 bin/AltosDroid-release-unsigned.apk: $(SRC) $(ALTOSLIB) $(SUPPORT_V4) $(GOOGLE_PLAY_SERVICES_LIB)
        ant release
 
-sign:
+release: bin/AltosDroid-release-unsigned.apk
        jarsigner -keystore release.keystore \
           -signedjar bin/AltosDroid-release-signed.apk \
           bin/AltosDroid-release-unsigned.apk AltosDroid
-       $(SDK)/tools/zipalign -f 4 \
+       $(ZIPALIGN) -f 4 \
           bin/AltosDroid-release-signed.apk \
           bin/AltosDroid-release.apk