From ac063d1c82851d0390473170aef85d4bfc44bf94 Mon Sep 17 00:00:00 2001 From: yannk Date: Mon, 27 Dec 2021 13:15:08 +0100 Subject: [PATCH] Adding deleting old version of textures files when a material is changed --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index 51fb513..3ddd754 100644 --- a/Makefile +++ b/Makefile @@ -55,6 +55,10 @@ $(SBSAR_DIR)/%.sbsar: $(SBS_DIR)/%.sbs pngfiles="";\ material=$$(basename $@ ".sbsar");\ echo "material :"$$material;\ + echo "Cleaning old entries from the material :"$$material;\ + rm -Rf $(PNG1024_DIR)/$${material}*;\ + rm -Rf $(PNG512_DIR)/$${material}*;\ + rm -Rf $(PNG256_DIR)/$${material}*;\ for preset in $(PRESETLIST) ; do \ echo "- Preset" $$preset; \ listitem="";\