mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-11 19:04:35 +00:00
* update all the makefiles * add back openapi * update cache package * fix cache * update go mod
25 lines
422 B
Makefile
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
|