diff --git a/db/Makefile b/db/Makefile index b9cdf10..68e8125 100644 --- a/db/Makefile +++ b/db/Makefile @@ -5,6 +5,12 @@ init: go get -u github.com/golang/protobuf/proto go get -u github.com/golang/protobuf/protoc-gen-go go get github.com/micro/micro/v3/cmd/protoc-gen-micro + + +.PHONY: api +api: + protoc --openapi_out=. --proto_path=. proto/db.proto + .PHONY: proto proto: protoc --proto_path=. --micro_out=. --go_out=:. proto/db.proto