-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
40 lines (31 loc) · 890 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
34
35
36
37
38
39
40
.PHONY: install
install:
go install ./protoc-gen-rangerrpc
go install ./protoc-gen-rangerrpc-swagger
prep:
go install honnef.co/go/tools/cmd/staticcheck@latest
build/snapshot:
goreleaser release --snapshot --skip-publish --clean
.PHONY: generate/examples
generate/examples:
go generate ./examples/pingpong
go generate ./examples/oneof
go generate ./examples/swagger
go generate ./examples/rangerguard
.PHONY: run/example/server
run/example/server: install generate/examples
go run examples/pingpong/server/main.go
.PHONY: run/example/client
run/example/client: generate/examples
go run examples/pingpong/client/main.go
.PHONY: test
test:
go test ./...
go vet ./...
staticcheck ./...
# Copywrite Check Tool: https://github.com/hashicorp/copywrite
license: license/headers/check
license/headers/check:
copywrite headers --plan
license/headers/apply:
copywrite headers