-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
34 lines (26 loc) · 1.28 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
proto: ## Generate up to date protobuf code based on protobuf defintions in api/proto/defintions and other packages.
./generate.sh
#
# # mock messages
# protoc -I=./pkg/handlers/mock --go_out=plugins=grpc:./pkg/handlers/mock ./pkg/handlers/mock/*.proto
test: ## Run the same suite of tests and lints as ran in the CI
golangci-lint run
go test ./... -v -race
test-brief: ## Run tests that require no tools except go
go test ./... -v -race
neat: ## run formatters over codebase
goimports -v -l -w ./
help: ## display descriptions on targets
$(info Available targets)
@awk '/^[a-zA-Z\-\_0-9]+:/ { \
nb = sub( /^## /, "", helpMsg ); \
if(nb == 0) { \
helpMsg = $$0; \
nb = sub( /^[^:]*:.* ## /, "", helpMsg ); \
} \
if (nb) \
printf "\033[1;31m%-" width "s\033[0m %s\n", $$1, helpMsg; \
} \
{ helpMsg = $$0 }' \
width=$$(grep -o '^[a-zA-Z_0-9]\+:' $(MAKEFILE_LIST) | wc -L) \
$(MAKEFILE_LIST)