tools

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

tools/Makefile (15 lines, 429 B) -rw-r--r-- blame download

01234567891011121314
.PHONY: all build test help
all: help

build: ## Build the project
	@go build -C ./src/binclude -o ../../bin/binclude .
	@go build -C ./src/cbor -o ../../bin/cbor .
	@go build -C ./src/unixtime -o ../../bin/unixtime .

test: ## Run unit tests
	@go test ./...

help: ## Display help information
	@grep -E '^[a-zA-Z_-]+:.*?##.*$$' $(MAKEFILE_LIST) | \
		awk 'BEGIN {FS = ":.*?## *"}; {printf "\033[36m%-6s\033[0m %s\n", $$1, $$2}'