From d77902bf10693c5018a6e24573d524541acc7133 Mon Sep 17 00:00:00 2001
From: Alfred Burgess <alfred.burgess95@gmail.com>
Date: Thu, 28 Dec 2023 21:58:04 +0800
Subject: [PATCH] Added 
emake command for makefile. Tests now run on make all

---
 makefile | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/makefile b/makefile
index 052305d..b581349 100644
--- a/makefile
+++ b/makefile
@@ -66,7 +66,8 @@ TEST_SRC_OBJ_FILES = $(patsubst $(SRC_DIR)/%.cpp,$(TEST_BUILD_DIR)/%.src.o,$(SRC
 # Output executable
 TARGET = $(BIN_DIR)/game
 
-all: $(TARGET)
+# all: $(TARGET) $(TEST_TARGET)
+all: $(TARGET) test
 
 test: $(TEST_TARGET)
 	./$(TEST_TARGET)
@@ -95,5 +96,7 @@ clean:
 	rm -rf ./*~ ./*.swp ./*.gcno
 	rm -rf *~
 
+remake: clean $(TARGET)
+
 run: $(TARGET)
 	./$(TARGET)
-- 
GitLab