-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
29 lines (22 loc) · 822 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
export PROJECTNAME=$(shell basename "$(PWD)")
.SILENT: ; # no need for @
setup: ## Setup required dependencies
echo "Install SDKMAN! (https://sdkman.io/install)"
echo "Run the following commands"
echo "sdk install java 22.2.r17-grl"
echo "gu install native-image"
echo "export GRAALVM_HOME=sdk home java 22.2.r17-grl"
build: ## Builds native image
./mvnw -B clean package -Pnative --file pom.xml
build-win: ## Builds native image
mvnw.cmd -B clean package -Pnative --file pom.xml
run: ## Runs the native binary
./target/${PROJECTNAME}
.PHONY: help
.DEFAULT_GOAL := help
help: Makefile
echo
echo " Choose a command run in "$(PROJECTNAME)":"
echo
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
echo