From 44c6a2105ecd504a9864d77fac39a7302b348562 Mon Sep 17 00:00:00 2001 From: iWas-Coder Date: Sun, 7 Jul 2024 19:57:06 +0200 Subject: [PATCH] fix: abstract away all the file targets for `make mrproper` --- GNUmakefile | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/GNUmakefile b/GNUmakefile index db570f6..8d2b7e7 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -302,6 +302,7 @@ ifndef D SKAP_OUT = $(SKAP_BUILD_DIR)/$(SKAP_NAME) SKAP_ASSETPACK_OUT = $(ASSETS_DIR).$(SKAP_NAME) endif +MRPROPER_TARGETS = $(GAME_NAME) $(GAME_NAME)_debug $(SKAP_ASSETPACK_OUT) $(SKAP_ASSETPACK_OUT).old carbon_results.xml ################### @@ -465,11 +466,11 @@ clean: fi mrproper: clean - @for i in $(GAME_NAME) $(GAME_NAME)_debug $(SKAP_ASSETPACK_OUT) $(SKAP_ASSETPACK_OUT).old; do \ - if [ -e $$i ]; then \ - echo " $(PPO_CLEAN) $$i"; \ - rm $$i; \ - fi \ + @for i in $(MRPROPER_TARGETS); do \ + if [ -e $$i ]; then \ + echo " $(PPO_CLEAN) $$i"; \ + rm $$i; \ + fi \ done version: