From 0eb9825c9ad007bf59453cb42d770c67d5981904 Mon Sep 17 00:00:00 2001 From: Matt Butcher Date: Tue, 10 May 2016 12:21:20 -0600 Subject: [PATCH] fix(make): add protoc target to top Makefile Closes #670 --- Makefile | 4 ++++ docs/developers.md | 3 +-- 2 files changed, 5 insertions(+), 2 deletions(-) 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