Files
services/places/Makefile
2021-03-25 10:29:04 +00:00

24 lines
538 B
Makefile

GOPATH:=$(shell go env GOPATH)
.PHONY: init
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: proto
proto:
protoc --openapi_out=. --proto_path=. --micro_out=. --go_out=:. proto/places.proto
.PHONY: docs
docs:
protoc --openapi_out=. --proto_path=. --micro_out=. --go_out=:. proto/places.proto
@redoc-cli bundle api-places.json
.PHONY: build
build:
go build -o places *.go
.PHONY: test
test:
go test -v ./... -cover