Update Makefile

Fix make help FileNotFoundError
This commit is contained in:
ylo878 2026-02-10 14:53:12 +02:00
parent 1735b9b799
commit e304939bdb

View File

@ -42,4 +42,5 @@ validate-yamls: ## Validate all YAML configuration files
.PHONY: help
help: ## Display this help message
@python -c "import re; \
[print(f'{m[0]:<20} {m[1]}') for m in re.findall(r'^([a-zA-Z_-]+):.*?## (.*)$$', open('$(MAKEFILE_LIST)').read(), re.M)]" | sort
p=r'$(firstword $(MAKEFILE_LIST))'.strip(); \
[print(f'{m[0]:<20} {m[1]}') for m in re.findall(r'^([a-zA-Z_-]+):.*?## (.*)$$', open(p, encoding='utf-8').read(), re.M)]" | sort