From a2ab7da4232be8351a083cc1b92c83a9fe232838 Mon Sep 17 00:00:00 2001 From: Quinn Date: Wed, 16 Apr 2025 14:06:27 +0200 Subject: [PATCH] fix: run target correctly sets the working directory --- makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/makefile b/makefile index e5c5061..391972c 100644 --- a/makefile +++ b/makefile @@ -58,7 +58,7 @@ endif # compiles and execute the binary run: compile - ./$(TARGET) + cd $(dir $(TARGET)) && ./$(notdir $(TARGET)) compile: compile_commands.json $(DIR) $(TARGET) $(ASSETS) clean: rm -rf $(DIR_BIN) $(DIR_OBJ) compile_commands.json