tools

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

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

012345678910111213
.PHONY: all build test help
all: help

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

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

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