tools

Miscellaneous software tools
git clone http://git.omkov.net/tools
Log | Tree | Refs | Download

tools/Makefile (14 lines, 376 B) -rw-r--r-- file download

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