18 lines
513 B
Makefile
18 lines
513 B
Makefile
build:
|
|
go build -o ./bin/calendar ./cmd/calendar/main.go
|
|
|
|
run:
|
|
go run ./cmd/calendar/main.go -config ./configs/config.toml
|
|
|
|
test:
|
|
go test -race ./internal/...
|
|
|
|
lint: install-lint-deps
|
|
golangci-lint run .cmd/... ./internal/...
|
|
|
|
install-lint-deps:
|
|
(which golangci-lint > /dev/null) || curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(shell go env GOPATH)/bin v1.30.0
|
|
|
|
generate:
|
|
protoc --go_out=grpc:internal grpc/calendar.proto
|
|
.PHONY: build run test lint |