From 2045fe220d54595bd0469c98be2467ca31376510 Mon Sep 17 00:00:00 2001
From: Max Melchert <maximilian.melchert@stud.hs-bochum.de>
Date: Tue, 18 Mar 2025 16:58:35 +0100
Subject: [PATCH] fix(makefile): allow help target to be used with custom
 makefile name

---
 src/makefile/basic.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/makefile/basic.mk b/src/makefile/basic.mk
index 8ddc655..003792d 100644
--- a/src/makefile/basic.mk
+++ b/src/makefile/basic.mk
@@ -44,7 +44,7 @@ CONDA := source $(SERVER_CONDA_PATH)/etc/profile.d/conda.sh && conda
 default: help # customize, if you know what you're doing
 
 help: # list targets and usage
-	@awk '/^[a-zA-Z0-9_-]+:/{print $1}' makefile
+	@awk '/^[a-zA-Z0-9_-]+:/{print $1}' $(lastword $(MAKEFILE_LIST))
 
 install: # install conda environment
 	$(SSH) '\
-- 
GitLab