fix: run target correctly sets the working directory

This commit is contained in:
2025-04-16 14:06:27 +02:00
parent ef527ec640
commit a2ab7da423

View File

@@ -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