-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
77 lines (60 loc) · 1.74 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# SingleProcess
s-proto:
@echo "Generating Go files"
cd singleProcess/proto && protoc --go_out=. --go-grpc_out=. \
--go-grpc_opt=paths=source_relative --go_opt=paths=source_relative *.proto
# Single Process Client
sc:
go build -o bin/client \
tgrziminiar/grpcStreaming/singleProcess/client
./bin/client
# Single Process Server
ss:
go build -o bin/server \
tgrziminiar/grpcStreaming/singleProcess/server
./bin/server
b-proto:
@echo "Generating Go files"
cd bidirectional/proto && protoc --go_out=. --go-grpc_out=. \
--go-grpc_opt=paths=source_relative --go_opt=paths=source_relative *.proto
# Bidirectional Client
bc:
go build -o bin/client \
tgrziminiar/grpcStreaming/bidirectional/client
./bin/client
# Bidirectional Server
bs:
go build -o bin/server \
tgrziminiar/grpcStreaming/bidirectional/server
./bin/server
# ClientStream Proto
c-proto:
@echo "Generating Go files"
cd clientStream/proto && protoc --go_out=. --go-grpc_out=. \
--go-grpc_opt=paths=source_relative --go_opt=paths=source_relative *.proto
# ClientStream Client
cc:
go build -o bin/client \
tgrziminiar/grpcStreaming/clientStream/client
./bin/client
# ClientStream Server
cs:
go build -o bin/server \
tgrziminiar/grpcStreaming/clientStream/server
./bin/server
# ServerStream Proto
ss-proto:
@echo "Generating Go files"
cd serverStream/proto && protoc --go_out=. --go-grpc_out=. \
--go-grpc_opt=paths=source_relative --go_opt=paths=source_relative *.proto
# ServerStream Server
ssc:
go build -o bin/client \
tgrziminiar/grpcStreaming/serverStream/client
./bin/client
# ServerStream Client
sss:
go build -o bin/server \
tgrziminiar/grpcStreaming/serverStream/server
./bin/server
.PHONY: s-proto sc ss b-proto bc bs c-proto cc cs ss-proto ssc sss