-
Notifications
You must be signed in to change notification settings - Fork 100
/
Makefile
36 lines (21 loc) · 982 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
.PHONY: help all
.DEFAULT_GOAL := help
SHELL = /bin/sh
## Gradle
GW = ./gradlew
GFLAGS ?=
GW_CMD = $(GW) $(GFLAGS)
# GW_OPT_DISABLE_LOCAL=-x autoLintGradle
GW_OPT_DISABLE_LOCAL=
format: ## Formats source code
$(GW_CMD) formatKotlin
publish-local: ## Clans, bulds, and publishes the Codegen artifacts to mavenLocal, as a SNAPSHOT.
$(GW_CMD) $(GW_OPT_DISABLE_LOCAL) clean build publishToMavenLocal
test-examples: ## Modify the examples to use the latest Codegen SNAPSHOT, publishes the snapshot locally, and builds the examples.
$(MAKE) publish-local
scripts/test-examples.py -v --path=build/examples
install-py-libs: ## Installs the Python Modules required by the scripts.
pip3 install -r scripts/requirements.txt
all: format test-examples ## Cleans, checks/tests, publishes the plugin locally and runs the examples.
help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'