lee-pai-long
6/23/2017 - 12:52 PM

Default makefile with just a help target

Default makefile with just a help target

# Include all local tasks.
include tasks/*.mk

# Add color to help printing.
PRINT = '{printf "\033[36m%-16s\033[0m : %s\n", $$1, $$2}'

help: ## Show this message.

	@echo "usage: make [task]\n" \
	&& echo "available tasks:" \
	&& awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / '$(PRINT) $(MAKEFILE_LIST)

# Declare tasks as phony targets
.PHONY: help