micro-T/services/foo/Makefile

21 lines
308 B
Makefile
Raw Permalink Normal View History

2020-06-30 09:18:54 +00:00
GOPATH:=$(shell go env GOPATH)
.PHONY: proto
proto:
protoc --proto_path=${GOPATH}/src:. --micro_out=. --go_out=. proto/foo/foo.proto
.PHONY: build
build: proto
go build -o foo-srv main.go plugin.go
.PHONY: test
test:
go test -v ./... -cover
.PHONY: docker
docker:
docker build . -t foo-srv:latest