forked from kyleconroy/grpc-on-heroku
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
22 lines (19 loc) · 1.02 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
all: helloworld/helloworld.pb.go helloworld/helloworld.pb.gw.go helloworld/helloworld.swagger.json
helloworld/helloworld.pb.go: helloworld/helloworld.proto
protoc -I/usr/local/include -I helloworld\
-I$(GOPATH)/src \
-I$(GOPATH)/src/github.com/gengo/grpc-gateway/third_party/googleapis \
--go_out=Mgoogle/api/annotations.proto=github.com/gengo/grpc-gateway/third_party/googleapis/google/api,plugins=grpc:helloworld \
helloworld/helloworld.proto
helloworld/helloworld.pb.gw.go: helloworld/helloworld.proto
protoc -I/usr/local/include -I helloworld\
-I$(GOPATH)/src \
-I$(GOPATH)/src/github.com/gengo/grpc-gateway/third_party/googleapis \
--grpc-gateway_out=logtostderr=true:helloworld \
helloworld/helloworld.proto
helloworld/helloworld.swagger.json: helloworld/helloworld.proto
protoc -I/usr/local/include -I helloworld\
-I$(GOPATH)/src \
-I$(GOPATH)/src/github.com/gengo/grpc-gateway/third_party/googleapis \
--swagger_out=logtostderr=true:helloworld \
helloworld/helloworld.proto