mirror of https://github.com/grpc/grpc-go.git
Run protoc on proto files in same package together
This commit is contained in:
parent
4c2aaab42e
commit
147022d136
4
Makefile
4
Makefile
|
|
@ -21,8 +21,8 @@ proto:
|
|||
exit 1; \
|
||||
fi
|
||||
go get -u -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; \
|
||||
for dir in $$(git ls-files '*.proto' | xargs -n1 dirname | uniq); do \
|
||||
protoc -I $$dir --go_out=plugins=grpc:$$dir $$dir/*.proto; \
|
||||
done
|
||||
|
||||
test: testdeps
|
||||
|
|
|
|||
Loading…
Reference in New Issue