-
Notifications
You must be signed in to change notification settings - Fork 6
/
Makefile
29 lines (22 loc) · 754 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
SHELL := /bin/bash
BUILD_DATE := `date +%Y%m%d%H%M`
GREEN := $(shell tput -Txterm setaf 2)
YELLOW := $(shell tput -Txterm setaf 3)
RESET := $(shell tput -Txterm sgr0)
.PHONY: help
help: ## Show this help.
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {printf "${YELLOW}%-16s${GREEN}%s${RESET}\n", $$1, $$2}' $(MAKEFILE_LIST)
deps: ## Download dependencies
@go mod tidy
@go mod download
deps-devel:
@brew install jq
tests: ## Run tests
@go generate ./...
@go test -cover -race -coverprofile=coverage.txt -covermode=atomic ./...
build: ## Build binary for local operating system
@go env -w CGO_ENABLED="0"
@go generate ./...
@go build -ldflags "-s -w" -o zenit main.go
release: ## Creare release of this project
@./scripts/release.sh