-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathMakefile
31 lines (25 loc) · 870 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
all: pb grpc
pb:
cd proto && protoc -I=. \
-I${GOPATH}/src \
--gogofaster_out=:. \
block.proto ibtp.proto network.proto receipt.proto bxh_transaction.proto chain.proto arg.proto \
interchain_meta.proto plugin.proto vp_info.proto basic.proto audit_info.proto tss_info.proto \
interchain_event.proto bxh_contract.proto offchain_transmission.proto commit.proto
grpc:
cd proto && protoc -I=. \
-I=${GOPATH}/src \
-I=${GOPATH}/src/github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis \
-I=${GOPATH}/src/github.com/gogo/protobuf/protobuf \
--grpc-gateway_out=logtostderr=true:. \
--swagger_out=logtostderr=true:. \
--gogofaster_out=plugins=grpc:. \
broker.proto plugin.proto
## make linter: Run golanci-lint
linter:
golangci-lint run -E goimports -E bodyclose --skip-dirs-use-default
clean:
rm pb/*.pb.go
rm pb/*.json
rm pb/*.gw.go
.PHONY: pb