-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
31 lines (26 loc) · 1009 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
build:
go build -o ./bin/ ./cmd/go-bif-examine
build-cli:
go build -o ./bin/ ./cmd/go-bif-examine-cli
build-whisperer:
go build -o ./bin/ ./cmd/whisperer
fmt:
gofmt -w -s pkg cmd
grpc:
./protoc/bin/protoc \
--go_out=./pkg/rpc \
--go-grpc_out=./pkg/rpc \
./pkg/rpc/pb/bif_examine.proto
./protoc/bin/protoc \
--go_out=./pkg/rpc \
--go-grpc_out=./pkg/rpc \
./pkg/rpc/pb/wisperer.proto
install_grpc_prereqs:
mkdir -p ./protoc
cd ./protoc && wget -nc https://github.com/protocolbuffers/protobuf/releases/download/v25.1/protoc-25.1-linux-x86_64.zip
cd ./protoc && unzip protoc-25.1-linux-x86_64.zip
chmod +x ./protoc/bin/protoc
go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest
# cd ./protoc && wget -nc https://github.com/protocolbuffers/protobuf-javascript/releases/download/v3.21.2/protobuf-javascript-3.21.2-linux-x86_64.tar.gz
# cd ./protoc && tar -xzvf protobuf-javascript-3.21.2-linux-x86_64.tar.gz