Skip to content

Commit

Permalink
fixed & improved Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel committed Apr 14, 2012
1 parent 1d233fb commit de77ac3
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ APPNAME = LibVisual
ACTIVITY = LibVisual
TARGET = android-8

all:
all: bin/$(ACTIVITY)-release-unsigned.apk
bin/$(ACTIVITY)-release-unsigned.apk:
ndk-build APP_OPTIM=release
ant clean
ant release
Expand All @@ -20,6 +21,7 @@ install_emu: bin/$(APPNAME).apk
install_dev: bin/$(APPNAME).apk
adb -d install -r bin/$(APPNAME).apk


debug: bin/$(APPNAME)-debug.apk
bin/$(APPNAME)-debug.apk:
ndk-build NDK_DEBUG=1 APP_OPTIM=debug V=1
Expand Down Expand Up @@ -47,9 +49,8 @@ keygen: my.keystore
my.keystore:
keytool -genkey -v -keystore my.keystore -alias $(APPNAME)_key -keyalg RSA -keysize 4096 -validity 100000

sign: my.keystore bin/$(APPNAME).apk

bin/$(APPNAME).apk:
sign: bin/$(APPNAME)
bin/$(APPNAME).apk: my.keystore bin/$(ACTIVITY)-release-unsigned.apk
jarsigner -keystore my.keystore bin/$(ACTIVITY)-release-unsigned.apk $(APPNAME)_key
zipalign -v 4 bin/$(ACTIVITY)-release-unsigned.apk bin/$(APPNAME).apk

Expand Down

0 comments on commit de77ac3

Please sign in to comment.