10 lines
459 B
Makefile
10 lines
459 B
Makefile
.PHONY: help serve test-data
|
|
|
|
help: ## display this help
|
|
@awk 'BEGIN{FS = ":.*##"; printf "\033[1m\nUsage\n \033[1;92m make\033[0;36m <target>\033[0m\n"} /^[a-zA-Z0-9_-]+:.*?##/ { printf " \033[36m%-15s\033[0m %s\n", $$1, $$2 } ' $(MAKEFILE_LIST)
|
|
|
|
serve: ## Run "intake serve" with live reload
|
|
@air -build.cmd "go build -o tmp/intake" -build.bin tmp/intake -build.args_bin serve,--data-dir,tmp
|
|
|
|
test-data: ## Recreate test data in tmp/
|
|
@test/test_items.sh
|