Files
services/helloworld/Makefile
Asim Aslam f3ca93b789 update all the makefiles (#111)
* update all the makefiles

* add back openapi

* update cache package

* fix cache

* update go mod
2021-05-19 10:36:07 +01:00

25 lines
422 B
Makefile

GOPATH:=$(shell go env GOPATH)
.PHONY: proto
proto:
protoc --openapi_out=. --proto_path=${GOPATH}/src:. --micro_out=. --go_out=. proto/helloworld.proto
.PHONY: api
api:
protoc --openapi_out=. --proto_path=${GOPATH}/src:. proto/helloworld.proto
.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