forked from robustmq/robustmq
-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
53 lines (42 loc) · 1.59 KB
/
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
# The arguments for building images.
VERSION:=$(shell grep "version =" Cargo.toml | awk -F'"' '{print $2}' | head -n 1 | sed 's/version = //g')
##@ Build Mac Release
.PHONY: build
build: ## Build mac version robustmq.
sh scripts/build-release.sh local $(VERSION)
##@ Build Mac Release
.PHONY: build-mac-release
build-mac-release: ## Build mac version robustmq.
sh scripts/build-release.sh mac $(VERSION)
##@ Build Linux Release
.PHONY: build-linux-release
build-linux-release: ## Build linux version robustmq.
sh scripts/build-release.sh linux $(VERSION)
##@ Build Win Release
.PHONY: build-win-release
build-win-release: ## Build win version robustmq.
sh scripts/build-release.sh win $(VERSION)
##@ Build Arm Release
.PHONY: build-arm-release
build-arm-release: ## Build arm version robustmq.
sh scripts/build-release.sh arm $(VERSION)
.PHONY: test
test: ## Unit testing for Robustmq
cargo clean
sh ./scripts/unit-test.sh
.PHONY: mqtt-ig-test
mqtt-ig-test: ## Integration testing for MQTT Broker
sh ./scripts/mqtt-ig-test.sh
.PHONY: place-ig-test
place-ig-test: ## Integration testing for Placement Center
sh ./scripts/place-ig-test.sh
.PHONY: journal-ig-test
journal-ig-test: ## Integration testing for Journal Engine
sh ./scripts/journal-ig-test.sh
.PHONY: clean
clean: ## Clean the project.
cargo clean
rm -rf build
.PHONY: help
help: ## Display help messages.
@awk 'BEGIN {FS = ":.*##"; printf "\nUsage:\n make \033[36m<target>\033[0m\n"} /^[a-zA-Z_0-9-]+:.*?##/ { printf " \033[36m%-30s\033[0m %s\n", $$1, $$2 } /^##@/ { printf "\n\033[1m%s\033[0m\n", substr($$0, 5) } ' $(MAKEFILE_LIST)