mirror of
https://github.com/thepigeongenerator/tetris_clone.git
synced 2025-12-17 05:55:46 +01:00
fix: run target correctly sets the working directory
This commit is contained in:
2
makefile
2
makefile
@@ -58,7 +58,7 @@ endif
|
|||||||
|
|
||||||
# compiles and execute the binary
|
# compiles and execute the binary
|
||||||
run: compile
|
run: compile
|
||||||
./$(TARGET)
|
cd $(dir $(TARGET)) && ./$(notdir $(TARGET))
|
||||||
compile: compile_commands.json $(DIR) $(TARGET) $(ASSETS)
|
compile: compile_commands.json $(DIR) $(TARGET) $(ASSETS)
|
||||||
clean:
|
clean:
|
||||||
rm -rf $(DIR_BIN) $(DIR_OBJ) compile_commands.json
|
rm -rf $(DIR_BIN) $(DIR_OBJ) compile_commands.json
|
||||||
|
|||||||
Reference in New Issue
Block a user