-
Notifications
You must be signed in to change notification settings - Fork 12
/
Makefile
34 lines (30 loc) · 903 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
# Makefile
.PHONY: generate-user-proto
generate-user-proto:
protoc -I=. \
--go_out . \
--go_opt paths=source_relative \
--go-grpc_out . --go-grpc_opt paths=source_relative \
protos/v1/user/user.proto
.PHONY: generate-post-proto
generate-post-proto:
protoc -I=. \
--go_out . \
--go_opt paths=source_relative \
--go-grpc_out . --go-grpc_opt paths=source_relative \
protos/v1/post/post.proto
.PHONY: generate-user-v2-proto
generate-user-v2-proto:
protoc -I=. \
--go_out . \
--go_opt paths=source_relative \
--go-grpc_out . \
--go-grpc_opt paths=source_relative \
protos/v2/user/user.proto
.PHONY: generate-user-v2-gateway-proto
generate-user-v2-gateway-proto:
protoc -I . \
--grpc-gateway_out . \
--grpc-gateway_opt logtostderr=true \
--grpc-gateway_opt paths=source_relative \
protos/v2/user/user.proto