noozoid/Makefile

30 lines
528 B
Makefile
Raw Permalink Normal View History

2021-01-02 15:23:32 +00:00
PROGNAME=noozoid
2021-01-03 06:53:59 +00:00
BUILD_DIR=bin
2021-01-02 15:23:32 +00:00
all: help
2021-01-03 06:53:59 +00:00
prepare: ## install dependencies
mkdir -p $(BUILD_DIR)
shards install
2021-01-03 05:14:01 +00:00
build: ## build binary
2021-01-02 15:23:32 +00:00
mkdir -p $(BUILD_DIR)
2021-01-03 06:53:59 +00:00
shards build
2021-01-02 15:23:32 +00:00
2021-01-03 05:14:01 +00:00
test: ## test binary
crystal spec
2021-01-02 15:23:32 +00:00
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 ""