android-rollerderby-penalty.../Makefile

35 lines
889 B
Makefile
Raw Normal View History

2012-05-26 20:41:05 -06:00
ALIAS = dartcatcher
KEYSTORE = /home/neale/.local/android.keystore
SDK = /opt/android-sdk
ZIPALIGN = $(SDK)/tools/zipalign
2014-03-03 20:19:07 -07:00
default: debug-install
2012-05-26 20:41:05 -06:00
2012-05-26 16:22:14 -06:00
install: debug-install
debug-install: bin/PenaltyTimer-debug.apk
adb install -r $<
2012-05-26 16:48:47 -06:00
release: bin/PenaltyTimer-release.apk
2012-05-26 20:41:05 -06:00
release-install: bin/PenaltyTimer-release.apk
adb install -r $<
2012-04-05 19:37:15 -06:00
clean:
ant clean
2012-05-26 20:41:05 -06:00
2012-12-08 18:21:12 -07:00
res/layout/main.xml: main.xml.m4
m4 $< > $@
2012-05-26 20:41:05 -06:00
bin/PenaltyTimer-release.apk: bin/PenaltyTimer-release-unaligned.apk
2012-05-26 22:40:06 -06:00
$(ZIPALIGN) -f 4 $< $@
2012-04-03 13:07:33 -06:00
2012-05-26 20:41:05 -06:00
bin/PenaltyTimer-release-unaligned.apk: bin/PenaltyTimer-release-unsigned.apk
jarsigner -verbose -sigalg MD5withRSA -digestalg SHA1 -keystore $(KEYSTORE) -signedjar $@ $< $(ALIAS)
2012-12-08 18:21:12 -07:00
bin/PenaltyTimer-release-unsigned.apk: src/org/woozle/penaltytimer/* res/*/* res/layout/main.xml
2012-05-26 16:22:14 -06:00
ant release
2012-12-08 18:21:12 -07:00
bin/PenaltyTimer-debug.apk: src/org/woozle/penaltytimer/* res/*/* res/layout/main.xml
2012-04-03 13:07:33 -06:00
ant debug