-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
51 lines (42 loc) · 1.33 KB
/
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
41
42
43
44
45
46
47
48
49
50
51
.PHONY: good
good:
protoc -I /Users/albelt/Gitlab/common/protos -I . \
--go_out=albelt/good_srv \
--go-grpc_out=albelt/good_srv \
--validate_out="lang=go:albelt/good_srv" \
--doc_out=./doc --doc_opt=html,good_srv.html \
albelt/good_srv/msg.proto albelt/good_srv/svc.proto
.PHONY: order
order:
protoc -I /Users/albelt/Gitlab/common/protos -I . \
--go_out=albelt/order_srv \
--go-grpc_out=albelt/order_srv \
--validate_out="lang=go:albelt/order_srv" \
--doc_out=./doc --doc_opt=html,order_srv.html \
albelt/order_srv/msg.proto albelt/order_srv/svc.proto albelt/order_srv/const.proto
.PHONY: stock
stock:
protoc -I /Users/albelt/Gitlab/common/protos -I . \
--go_out=albelt/stock_srv \
--go-grpc_out=albelt/stock_srv \
--validate_out="lang=go:albelt/stock_srv" \
--doc_out=./doc --doc_opt=html,stock_srv.html \
albelt/stock_srv/msg.proto albelt/stock_srv/svc.proto albelt/stock_srv/const.proto
.PHONY: user
user:
protoc -I /Users/albelt/Gitlab/common/protos -I . \
--go_out=albelt/user_srv \
--go-grpc_out=albelt/user_srv \
--validate_out="lang=go:albelt/user_srv" \
--doc_out=./doc --doc_opt=html,user_srv.html \
albelt/user_srv/msg.proto albelt/user_srv/svc.proto albelt/user_srv/const.proto
.PHONY: all
all:
make good
make order
make stock
make user
.PHONY: clean
clean:
rm -rf ./albelt/**/go
rm -rf ./doc/*