Files
services/files/Makefile
Asim Aslam f3ca93b789 update all the makefiles (#111)
* update all the makefiles

* add back openapi

* update cache package

* fix cache

* update go mod
2021-05-19 10:36:07 +01:00

28 lines
573 B
Makefile

GOPATH:=$(shell go env GOPATH)
.PHONY: init
init:
go get -u github.com/golang/protobuf/proto
go get -u github.com/golang/protobuf/protoc-gen-go
go get github.com/micro/micro/v3/cmd/protoc-gen-micro
go get github.com/micro/micro/v3/cmd/protoc-gen-openapi
.PHONY: proto
proto:
protoc --proto_path=. --micro_out=. --go_out=:. proto/files.proto
.PHONY: api
api:
protoc --openapi_out=. --proto_path=. proto/files.proto
.PHONY: build
build:
go build -o files *.go
.PHONY: test
test:
go test -v ./... -cover
.PHONY: docker
docker:
docker build . -t files:latest