blob: fd522a5f186da6217ada79c26c0e1f30a4042fd4 [file] [log] [blame]
Don Newton2bdfd3f2019-04-08 17:06:33 -04001VOLTHA_PROTO_PATH := protos/voltha_protos
2VOLTHA_PROTO_FILES := $(wildcard protos/voltha_protos/*.proto)
3VOLTHA_PROTO_GO_FILES := $(foreach f,$(VOLTHA_PROTO_FILES),$(subst .proto,.pb.go,$(f)))
4VOLTHA_PROTO_DESC_FILES := $(foreach f,$(VOLTHA_PROTO_FILES),$(subst .proto,.desc,$(f)))
5
6voltha-api: $(VOLTHA_PROTO_GO_FILES)
7
8%.pb.go: %.proto
9 @protoc -I ${VOLTHA_PROTO_PATH} \
10 --go_out=plugins=grpc:${VOLTHA_PROTO_PATH} \
11 -I${GOPATH}/src \
12 -I${GOPATH}/src/github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis \
13 $<