Correcting misleading variable for deleting obsolete files
This commit is contained in:
parent
ad6d86f82d
commit
3c804ef784
1 changed files with 5 additions and 5 deletions
10
Makefile
10
Makefile
|
@ -17,17 +17,17 @@ export TEXTURES := $(wildcard $(TEXTURESET_FOLDER)/*)
|
|||
|
||||
### RECIPE PART ###
|
||||
|
||||
all : previews del_obsolete export
|
||||
all : del_obsolete export
|
||||
|
||||
previews: $(SBSARFILES)
|
||||
previews: $(SBSARFILES) | subformats
|
||||
$(MAKE) -f Makefile_previews all
|
||||
|
||||
subformats: $(SBSARFILES)
|
||||
$(MAKE) -f Makefile_subformats all
|
||||
|
||||
del_obsolete: $(SBS_DIR)
|
||||
@ for material in $(TEXTURES); do \
|
||||
rootname=$$(echo $$material | sed -r 's|$(TEXTURESET_FOLDER)/(.*)_.*|\1|');\
|
||||
del_obsolete: $(SBS_DIR) | previews
|
||||
@ for material in $$(ls $(SBSAR_DIR)); do \
|
||||
rootname=$$(echo $$material | sed -r 's|(.*)\.sbsar|\1|');\
|
||||
sbs_name=$(SBS_DIR)/$$rootname.sbs ;\
|
||||
if [ ! -f $$sbs_name ] ;\
|
||||
then echo "CLEANUP : The corresponding $$sbs_name doesn’t exist any more, deleting the corresponding obsolete files :" ;\
|
||||
|
|
Loading…
Reference in a new issue