1
0
mirror of https://github.com/go-micro/go-micro.git synced 2025-01-05 10:20:53 +02:00
go-micro/examples/template/srv/Makefile

19 lines
297 B
Makefile
Raw Normal View History

2020-12-26 17:17:20 +02:00
GOPATH:=$(shell go env GOPATH)
.PHONY: proto test docker
proto:
protoc --proto_path=${GOPATH}/src:. --micro_out=. --go_out=. proto/example/example.proto
build: proto
go build -o template-srv main.go plugin.go
test:
go test -v ./... -cover
docker:
docker build . -t template-srv:latest