-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathMakefile
77 lines (58 loc) · 1.83 KB
/
Makefile
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
srv = smblott.org
www = /home/www/smblott.org/intent_radio
versioncode = $(shell sh ./script/version.sh)
debug: ir_library/res/raw/tasker.prj
ant debug
release: ir_library/res/raw/tasker.prj
$(MAKE) clean
ant release
mkdir -p releases
install -v -m 0444 bin/IntentRadio-release.apk releases/IntentRadio-release-general-$(versioncode).apk
rsync -v releases/*.apk $(HOME)/storage/Dropbox/Public/
rsync -v bin/IntentRadio-release.apk $(srv):$(www)
clean:
cd ./ir_library && ant clean
cd ./google-play-store && ant clean
ant clean
install:
$(MAKE) debug
adb install -r bin/IntentRadio-debug.apk
install-release:
$(MAKE) release
adb install -r bin/IntentRadio-release.apk
update-project:
android update project --name "IntentRadio" --target android-19 --path . --subprojects
cd ./ir_library/ && $(MAKE) update-project
google:
cd ./google-play-store && $(MAKE) debug
google-release:
cd ./google-play-store && $(MAKE) release
logcat:
adb logcat
log:
adb logcat -s IntentRadio -s MediaPlayer
logfile:
adb shell cat /sdcard/Android/data/org.smblott.intentradio/files/intent-radio.log
ir_library/res/raw/tasker.prj: ./ir_library/misc/Radio.prj.xml
cd ./ir_library/ && make res/raw/tasker.prj
version:
@echo $(versioncode)
.PHONY: debug release clean install install-release update-project logcat log google google-release version
include ./Makefile.test
# Release process:
#
# - bump:
# - version code and name in BOTH ./AndroidManifest.xml and ./google-play-store/AndroidManifest.xml
# - update release notes in web/index.ascii:
# make install
# - git commit; git push
# - gtag vX.Y.Z
# - build release APKs:
# make release
# make google-release
# - F-Droid:
# - just updating the tag (above) seems to trigger F-Droid to fetch
# and build the new version
# - Google Play Store:
# - upload new APK
#