A free, self-hostable news aggregator…
Change make help output (#7901)
Alexis Degrugillier28e0a548c81d
diff --git a/Makefile b/Makefileindex 1720b565e..ffa3ad3e7 100644--- a/Makefile+++ b/Makefile@@ -25,9 +25,7 @@ elseDOCKERFILE=Dockerfileendif-############-## Docker ##-############+##@ Docker.PHONY: buildbuild: ## Build a Docker imagedocker build \@@ -55,9 +53,7 @@ stop: ## Stop FreshRSS container if anydocker stop freshrss-dev || truedocker network rm $(NETWORK) || true-######################-## Tests and linter ##-######################+##@ Tests and linter.PHONY: testtest: bin/phpunit ## Run the test suite$(PHP) bin/phpunit --bootstrap ./tests/bootstrap.php ./tests@@ -98,9 +94,7 @@ node_modules/.bin/eslint:node_modules/.bin/rtlcss:npm install-##########-## I18N ##-##########+##@ I18n.PHONY: i18n-formati18n-format: ## Format I18N files@$(PHP) ./cli/manipulate.translation.php -a format@@ -170,9 +164,7 @@ ifndef keyendif@$(PHP) ./cli/manipulate.translation.php -a exist -k $(key)-###########-## TOOLS ##-###########+##@ Tools.PHONY: rtlrtl: node_modules/.bin/rtlcss ## Generate RTL CSS filesnpm run-script rtlcss@@ -218,10 +210,7 @@ test-all: composer-test npm-test typos-test.PHONY: fix-allfix-all: composer-fix npm-fix--##########-## HELP ##-##########+##@ Help.PHONY: help-help:- @grep --extended-regexp '^[a-zA-Z0-9_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'+help: ## Display this help+ @awk 'BEGIN {FS = ":.*##"; printf "\nUsage:\n make \033[36m<target>\033[0m\n"} /^[a-zA-Z_0-9-]+:.*?##/ { printf " \033[36m%-30s\033[0m %s\n", $$1, $$2 } /^##@/ { printf "\n\033[1m%s\033[0m\n", substr($$0, 5) } ' $(MAKEFILE_LIST)