Skip to content

Commit 3b13921

Browse files
committed
A more canonical & better behaved Makefile
1 parent d4f50d1 commit 3b13921

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

Makefile

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
1-
### CONFIG ###
1+
.ONESHELL:# single shell invocation for all lines in the recipe
2+
3+
.DEFAULT_GOAL = help
4+
5+
### VARIABLES ###
26
#
37
export PATH :=$(CURDIR):$(CURDIR)/scripts:$(PATH)
48

59
### TARGETS ###
610
#
7-
default: run
811

912
binary: clean ## Build the binary distribution
1013
@mvnw package -P assemblies -Dgpg.skip=true
@@ -21,10 +24,10 @@ compile: ## Compile the source code
2124
jar: clean ## Build the JAR file
2225
@mvnw package
2326

24-
run: compile ## Run PerfTest, pass exec arguments via ARGS
25-
@mvnw exec:java -Dexec.mainClass="com.rabbitmq.perf.PerfTest" -Dexec.args="${ARGS}"
27+
run: compile ## Run PerfTest, pass exec arguments via ARGS, e.g. ARGS="-x 1 -y 1 -r 1"
28+
@mvnw exec:java -Dexec.mainClass="com.rabbitmq.perf.PerfTest" -Dexec.args="$(ARGS)"
2629

2730
signed-binary: clean ## Build a GPG signed binary
2831
@mvnw package -P assemblies
2932

30-
.PHONY: help run
33+
.PHONY: binary help clean compile jar run signed-binary

0 commit comments

Comments
 (0)