forked from rabbitmq/rabbitmq-perf-test
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
33 lines (22 loc) · 878 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
.ONESHELL:# single shell invocation for all lines in the recipe
.DEFAULT_GOAL = help
### VARIABLES ###
#
export PATH :=$(CURDIR):$(CURDIR)/scripts:$(PATH)
### TARGETS ###
#
binary: clean ## Build the binary distribution
@mvnw package -P assemblies -Dgpg.skip=true
help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
clean: ## Clean all build artefacts
@mvnw clean
compile: ## Compile the source code
@mvnw compile
jar: clean ## Build the JAR file
@mvnw package
run: compile ## Run PerfTest, pass exec arguments via ARGS, e.g. ARGS="-x 1 -y 1 -r 1"
@mvnw exec:java -Dexec.mainClass="com.rabbitmq.perf.PerfTest" -Dexec.args="$(ARGS)"
signed-binary: clean ## Build a GPG signed binary
@mvnw package -P assemblies
.PHONY: binary help clean compile jar run signed-binary