diff --git a/Makefile b/Makefile index a0b04d3e9..ab5ba4e4d 100644 --- a/Makefile +++ b/Makefile @@ -52,6 +52,10 @@ test-unit: test-style: @scripts/validate-go.sh +.PHONY: protoc +protoc: + $(MAKE) -C _proto/ all + .PHONY: clean clean: @rm -rf $(BINDIR) diff --git a/docs/developers.md b/docs/developers.md index 0d252c356..fcf26729d 100644 --- a/docs/developers.md +++ b/docs/developers.md @@ -46,8 +46,7 @@ Note that you need to be on protobuf 3.x (`protoc --version`) and use the latest We use gRPC as an API layer. See `pkg/proto/hapi` for the generated Go code, and `_proto` for the protocol buffer definitions. -To regenerate the Go files from the protobuf source, `cd _proto && -make`. +To regenerate the Go files from the protobuf source, `make protoc`. ## Docker Images