GOPATH:=$(shell go env GOPATH) .PHONY: proto proto: protoc --openapi_out=. --proto_path=${GOPATH}/src:. --micro_out=. --go_out=. proto/helloworld.proto .PHONY: docs docs: protoc --openapi_out=. --proto_path=${GOPATH}/src:. --micro_out=. --go_out=. proto/helloworld.proto @redoc-cli bundle api-helloworld.json .PHONY: build build: proto go build -o helloworld-srv *.go .PHONY: test test: go test -v ./... -cover .PHONY: docker docker: docker build . -t helloworld-srv:latest