Improve Makefile: Add help texts.

This commit is contained in:
Franz Diebold 2022-07-16 09:38:57 +00:00
parent e59d29ab3b
commit 2858253253

View file

@ -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 .PHONY: install
install: install: ## Install dependencies.
npm install npm install
.PHONY: lint .PHONY: lint
lint: lint: ## Lint code.
npm run lint npm run lint
.PHONY: test .PHONY: test
test: test: ## Run tests.
npm run test npm run test
.PHONY: build .PHONY: build
build: build: ## Build code for distribution.
npm run build npm run build