add make api to db makefile

This commit is contained in:
Asim Aslam
2021-06-02 16:19:51 +01:00
parent 5adab82c4c
commit 9a048e4f63

View File

@@ -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