From 28582532534f64a90a9c6cdae15df52a5b4a56b3 Mon Sep 17 00:00:00 2001 From: Franz Diebold Date: Sat, 16 Jul 2022 09:38:57 +0000 Subject: [PATCH] Improve Makefile: Add help texts. --- Makefile | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index fc59bbf..43fe1a6 100644 --- a/Makefile +++ b/Makefile @@ -1,15 +1,19 @@ +.PHONY: help +help: ## Show this help. + @egrep '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-22s\033[0m %s\n", $$1, $$2}' + .PHONY: install -install: +install: ## Install dependencies. npm install .PHONY: lint -lint: +lint: ## Lint code. npm run lint .PHONY: test -test: +test: ## Run tests. npm run test .PHONY: build -build: +build: ## Build code for distribution. npm run build