From e304939bdb38be5aba4fa510631d89ac6e6c8bf5 Mon Sep 17 00:00:00 2001 From: ylo878 Date: Tue, 10 Feb 2026 14:53:12 +0200 Subject: [PATCH] Update Makefile Fix make help FileNotFoundError --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index b600f7a3..576aa7fc 100644 --- a/Makefile +++ b/Makefile @@ -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