Files
services/prayer/Makefile
Asim Aslam 3e814fb85c Prayer Service (Islam) (#214)
* checkpoint

* add fixes

* fix timezone parsing

* update

* fix error
2021-09-22 12:41:51 +01:00

29 lines
575 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: api
api:
protoc --openapi_out=. --proto_path=. proto/prayer.proto
.PHONY: proto
proto:
protoc --proto_path=. --micro_out=. --go_out=:. proto/prayer.proto
.PHONY: build
build:
go build -o prayer *.go
.PHONY: test
test:
go test -v ./... -cover
.PHONY: docker
docker:
docker build . -t prayer:latest