Don Newton | 2bdfd3f | 2019-04-08 17:06:33 -0400 | [diff] [blame] | 1 | VOLTHA_PROTO_PATH := protos/voltha_protos |
| 2 | VOLTHA_PROTO_FILES := $(wildcard protos/voltha_protos/*.proto) |
| 3 | VOLTHA_PROTO_GO_FILES := $(foreach f,$(VOLTHA_PROTO_FILES),$(subst .proto,.pb.go,$(f))) |
| 4 | VOLTHA_PROTO_DESC_FILES := $(foreach f,$(VOLTHA_PROTO_FILES),$(subst .proto,.desc,$(f))) |
| 5 | |
| 6 | voltha-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 | $< |