21 lines
308 B
Makefile
21 lines
308 B
Makefile
|
|
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
|