From d8479f3681b6c2fea8a41cfa5fb0814be664a3e7 Mon Sep 17 00:00:00 2001 From: MysterD Date: Sat, 16 Apr 2022 15:54:20 -0700 Subject: [PATCH] cleanup old mod dir every compile --- Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile b/Makefile index 8f0e0ce5..d765bf0f 100644 --- a/Makefile +++ b/Makefile @@ -599,6 +599,9 @@ endif MOD_DIR := mods +# Remove old mod dir +_ := $(shell rm -rf ./$(BUILD_DIR)/$(MOD_DIR)) + # Automatic dependency files DEP_FILES := $(O_FILES:.o=.d) $(ULTRA_O_FILES:.o=.d) $(GODDARD_O_FILES:.o=.d) $(BUILD_DIR)/$(LD_SCRIPT).d