Skip to content

Commit

Permalink
add make proto and update protos
Browse files Browse the repository at this point in the history
  • Loading branch information
bufdev committed May 24, 2015
1 parent f5bae61 commit 7b50c34
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 7 deletions.
13 changes: 12 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
testdeps \
updatetestdeps \
build \
proto \
lint \
pretest \
test \
Expand All @@ -28,9 +29,19 @@ updatetestdeps:
build: deps
go build ./...

proto:
@ if ! which protoc > /dev/null; then \
echo "error: protoc not installed" >&2; \
exit 1; \
fi
go get -v github.com/golang/protobuf/protoc-gen-go
for file in $$(git ls-files '*.proto'); do \
protoc -I $$(dirname $$file) --go_out=plugins=grpc:$$(dirname $$file) $$file; \
done

lint: testdeps
go get -v github.com/golang/lint/golint
for file in $(shell git ls-files '*.go' | grep -v '\.pb\.go$$' | grep -v '_string\.go$$'); do \
for file in $$(git ls-files '*.go' | grep -v '\.pb\.go$$' | grep -v '_string\.go$$'); do \
golint $$file; \
done

Expand Down
4 changes: 2 additions & 2 deletions benchmark/grpc_testing/test.pb.go

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

4 changes: 2 additions & 2 deletions interop/grpc_testing/test.pb.go

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

4 changes: 2 additions & 2 deletions test/grpc_testing/test.pb.go

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

0 comments on commit 7b50c34

Please sign in to comment.