-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
27 lines (23 loc) · 795 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
SRC_DIR = .
all: proto server clients
proto:
go get -u github.com/golang/protobuf/protoc-gen-go
go get -u github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway
protoc -I/usr/local/include -I${SRC_DIR} \
-I${GOPATH}/src \
--go_out=plugins=grpc:${SRC_DIR} \
deck/*.proto
protoc -I/usr/local/include -I${SRC_DIR} \
-I${GOPATH}/src \
-I${GOPATH}/src/github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis \
--go_out=plugins=grpc:${SRC_DIR} \
*.proto
protoc -I/usr/local/include -I. \
-I${GOPATH}/src \
-I${GOPATH}/src/github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis \
--grpc-gateway_out=logtostderr=true:. \
*.proto
server:
go build github.com/timpalpant/rummy/gameserver/gamed
clients:
go build github.com/timpalpant/rummy/clients/cli