-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathMakefile
38 lines (30 loc) · 938 Bytes
/
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
.PHONY: build
build:
./gradlew assembleDebug
.PHONY: release
release:
@stty -echo && read -p "Key password: " pwd && stty echo && \
STORE_PASSWORD=$$pwd KEY_PASSWORD=$$pwd ./gradlew assembleRelease
.PHONY: %-build
%-build:
./gradlew :$*:assembleDebug
.PHONY: %-release
%-release:
@stty -echo && read -p "Key password: " pwd && stty echo && \
STORE_PASSWORD=$$pwd KEY_PASSWORD=$$pwd ./gradlew :$*:assembleRelease
.PHONY: core-copy
core-copy:
rsync -av core/build/outputs/apk/release/core-release.apk \
ftp.gelin.ru:domains/gelin.ru/public_html/android/weather-notification/apks/weather-notification-$(shell ./gradlew -q core:printVersionName).apk
SKINNAMES = bigger-text black-text black-text-plus tulip-one white-text white-text-plus
SKINS = $(addprefix skin-,$(SKINNAMES))
APPS = core $(SKINS)
.PHONY: list
list:
@echo $(APPS)
.PHONY: clean
clean:
./gradlew clean
.PHONY: javadoc
javadoc:
./gradlew aggregateJavadocs