happy-send/Makefile
2021-01-01 02:40:27 +01:00

20 lines
422 B
Makefile

PROGNAME=happy-send
all: help
build: # ## build binary
crystal build -o _build/$(PROGNAME) src/main.cr
help: ## print this help
@echo "Usage: make <target>"
@echo ""
@echo "With one of following targets:"
@echo ""
@awk 'BEGIN {FS = ":.*?## "} \
/^[a-zA-Z_-]+:.*?## / \
{ sub("\\\\n",sprintf("\n%22c"," "), $$2); \
printf("\033[36m%-20s\033[0m %s\n", $$1, $$2); \
}' $(MAKEFILE_LIST)
@echo ""