backup-utils

Backup utilities
git clone http://git.omkov.net/backup-utils
Log | Tree | Refs | Download

backup-utils/Makefile (13 lines, 337 B) -rw-r--r-- file download

f28abe4 Jakob Wakeling 2024-01-28 21:13:23
0
.PHONY: all build test help
f28abe4 Jakob Wakeling 2024-01-28 21:13:23
1
all: help
f28abe4 Jakob Wakeling 2024-01-28 21:13:23
2
f28abe4 Jakob Wakeling 2024-01-28 21:13:23
3
build: ## Build the project
f28abe4 Jakob Wakeling 2024-01-28 21:13:23
4
	@go build -C ./src/backup-imap -o ../../bin/backup-imap .
f28abe4 Jakob Wakeling 2024-01-28 21:13:23
5
f28abe4 Jakob Wakeling 2024-01-28 21:13:23
6
test: ## Run unit tests
f28abe4 Jakob Wakeling 2024-01-28 21:13:23
7
	@go test ./...
f28abe4 Jakob Wakeling 2024-01-28 21:13:23
8
f28abe4 Jakob Wakeling 2024-01-28 21:13:23
9
help: ## Display help information
f28abe4 Jakob Wakeling 2024-01-28 21:13:23
10
	@grep -E '^[a-zA-Z_-]+:.*?##.*$$' $(MAKEFILE_LIST) | \
f28abe4 Jakob Wakeling 2024-01-28 21:13:23
11
		awk 'BEGIN {FS = ":.*?## *"}; {printf "\033[36m%-6s\033[0m %s\n", $$1, $$2}'
12