Files
services/helloworld/Makefile
Asim Aslam 61fe9c169b One
2020-10-02 11:13:01 +01:00

21 lines
323 B
Makefile

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