forked from alxndrsn/bikram-sambat.js
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Makefile
71 lines (44 loc) · 1.33 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
ADB = ${ANDROID_HOME}/platform-tools/adb
GRADLEW = ./gradlew --daemon --parallel
# Support Windows-style paths
ifdef ComSpec
# Use `/` for all paths, except `.\`
ADB := $(subst \,/,${ADB})
GRADLEW := $(subst /,\,${GRADLEW})
endif
.PHONY: default test travis
default: test assemble-java android
test: test-js test-bootstrap test-java
travis: test
.PHONY: setup-js test-js release-js
setup-js:
cd js && npm install
test-js:
cd js && npm test
release-js: setup-js test-js
cd js && \
../scripts/write-version-number js $$(git describe --abbrev=0 --tags) && \
npm publish
.PHONY: setup-bootstrap test-bootstrap release-bootstrap
test-bootstrap:
cd bootstrap && npm test
setup-bootstrap:
cd bootstrap && npm install
release-bootstrap: setup-bootstrap
cd bootstrap && \
../scripts/write-version-number bootstrap $$(git describe --abbrev=0 --tags) && \
npm publish
.PHONY: java assemble-java test-java
java: test-java assemble-java
assemble-java:
cd java && ${GRADLEW} assemble
test-java:
cd java && ${GRADLEW} test
.PHONY: android android-logs android-uninstall
android: android-uninstall android-deploy android-logs
android-deploy:
cd java && ${GRADLEW} :android-demo-app:installDebug
android-logs:
${ADB} logcat BikramSambat:V AndroidRuntime:E '*:S' | tee android.log
android-uninstall:
adb uninstall bikram.sambat