-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
executable file
·44 lines (36 loc) · 941 Bytes
/
Makefile
File metadata and controls
executable file
·44 lines (36 loc) · 941 Bytes
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
41
42
43
44
build:
go install ./...
all: rpc grpc connect
go install ./...
clean:
go clean
rm -rf genproto
test:
go test .
APIS=$(shell find proto/echo -name "*.proto")
descriptor:
protoc ${APIS} \
--proto_path='proto' \
--include_imports \
--descriptor_set_out=descriptor.pb
rpc:
go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
mkdir -p genproto
protoc ${APIS} \
--proto_path='proto' \
--go_opt='module=github.com/agentio/echo-go/genproto' \
--go_out='genproto'
grpc:
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest
mkdir -p genproto
protoc ${APIS} \
--proto_path='proto' \
--go-grpc_opt='module=github.com/agentio/echo-go/genproto' \
--go-grpc_out='genproto'
connect:
go install connectrpc.com/connect/cmd/protoc-gen-connect-go@latest
mkdir -p genproto
protoc ${APIS} \
--proto_path='proto' \
--connect-go_opt='module=github.com/agentio/echo-go/genproto' \
--connect-go_out='genproto'