Skip to content

Commit

Permalink
echopb/Makefile: fix proto search path, and update generated file
Browse files Browse the repository at this point in the history
  • Loading branch information
unship committed Jul 6, 2017
1 parent 0bf7df6 commit 872b49a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 13 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ To try it all out do this:
```
$ git clone https://github.com/philips/grpc-gateway-example.git
$ glide install
$ go install ./vender/github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway
$ go install ./vender/github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger
$ go install ./vendor/github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway
$ go install ./vendor/github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger
$ go build
$ grpc-gateway-example serve
$ grpc-gateway-example echo "my first rpc echo"
Expand Down
6 changes: 3 additions & 3 deletions echopb/Makefile
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
all:
protoc -I/usr/local/include -I. \
-I${GOPATH}/src \
-I../github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis \
-I../vendor/github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis \
--go_out=plugins=grpc:. \
service.proto
protoc -I/usr/local/include -I. \
-I${GOPATH}/src \
-I../github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis \
-I../vendor/github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis \
--grpc-gateway_out=logtostderr=true:. \
service.proto
protoc -I/usr/local/include -I. \
-I${GOPATH}/src \
-I../github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis \
-I../vendor/github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis \
--swagger_out=logtostderr=true:. \
service.proto
go generate .
13 changes: 5 additions & 8 deletions echopb/service.pb.gw.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 872b49a

Please sign in to comment.