forked from arcana261/ubroker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
23 lines (16 loc) · 754 Bytes
/
Makefile
File metadata and controls
23 lines (16 loc) · 754 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
.PHONY: check help dependencies dev-dependencies
SRCS = $(patsubst ./%,%,$(shell find . -name "*.go" -not -path "*vendor*"))
help: ## Display this help screen
@grep -h -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
check: dev-dependencies ## Run unit tests
go test ./...
go test -race ./...
benchmark: dev-dependencies ## Run benchmarks
go test -bench . ./...
dependencies: ## Download dependencies
go get -v ./...
dev-dependencies: dependencies ## Download development dependencies
go get -v github.com/stretchr/testify/suite
go get -v github.com/stretchr/testify/assert
ubroker: $(SRCS) | dependencies ## Compile us
go build -o ubroker ./cmd/ubroker