-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
59 lines (44 loc) · 1014 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
GRADLE_CMD ?= ./gradlew
ADB_CMD ?= adb
.DEFAULT_GOAL := help
.PHONY: help
help:
@grep -E '^[a-zA-Z_-][a-zA-Z_\-\.]+:.*$$' $(MAKEFILE_LIST) | awk -F ':' '{ print $$1 }'
.PHONY: clean
clean:
@$(GRADLE_CMD) clean
.PHONY: build
build:
@$(GRADLE_CMD) assemble
.PHONY: test
test:
@$(GRADLE_CMD) allTests
.PHONY: fmt
fmt:
@$(GRADLE_CMD) spotlessApply
.PHONY: kover
kover:
@$(GRADLE_CMD) koverHtmlReport
.PHONY: dokka
dokka:
@$(GRADLE_CMD) dokkaHtmlMultiModule
.PHONY: publish
publish:
@$(GRADLE_CMD) publish
.PHONY: publish.local
publish.local:
@$(GRADLE_CMD) publishToMavenLocal
## ----- Sample App ----- ##
.PHONY: sample.android.run
sample.android.run:
@$(GRADLE_CMD) installDebug
@$(ADB_CMD) shell am start -n soil.kmp/soil.kmp.MainActivity
.PHONY: sample.desktop.run
sample.desktop.run:
@$(GRADLE_CMD) runDistributable
.PHONY: sample.wasm.dist
sample.wasm.dist:
@$(GRADLE_CMD) wasmJsBrowserDistribution
.PHONY: sample.wasm.run
sample.wasm.run:
@$(GRADLE_CMD) wasmJsBrowserDevelopmentRun