solved all known make clean issues
[feisty_meow.git] / scripts / clam / rules.def
index b4074796794de4f4eb18d1e97c1daa20fc22cc5d..7258fc22950fdbaeee057a30f104e01a506a585f 100644 (file)
@@ -112,17 +112,15 @@ scratch_other_cleans:
 # is included.  we take a liberty here and also add different versions of
 # the file suffixes so we can clean all versions of the targets.
 add_to_cleanups_variable: $(SUPPLEMENTAL_CLEANUP_TARGETS)
-#      echo "going to add to cleanup variable now with the actual targets as $(ACTUAL_TARGETS)"
-       $(eval CLEANUPS = $(ACTUAL_TARGETS) $(ACTUAL_TARGETS:%.exe=%) $(ACTUAL_TARGETS:%.dll=%.so) $(ACTUAL_TARGETS:%.so=%.dll) $(CLEANUPS) )
+       $(eval CLEANUPS = $(ACTUAL_TARGETS) $(CLEANUPS) )
+#      $(eval CLEANUPS = $(ACTUAL_TARGETS) $(ACTUAL_TARGETS:%.exe=%) $(ACTUAL_TARGETS:%.dll=%.so) $(ACTUAL_TARGETS:%.so=%.dll) $(CLEANUPS) )
 #      echo "new CLEANUPS variable: $(CLEANUPS)"
-#hmmm: above is very code knowledgeable.
-# we should have a working mechanism for doing a specialized
-# type of cleanups addition, so we should rely on that instead of doing it above.
 
-# guard the main cleaning task with our variable
-# so we do not pull in subtargets when we do not want to.
+# main cleaning task.
 ready_to_clean:
-       @echo Whacking [$(CLEANUPS)]
+ifneq "$(CLEANUPS)" ""
+       @echo Whacking [$(notdir $(CLEANUPS))]
+endif
        $(HIDESH) -c '\
 if [ ! -z "$(CLEANUPS)" ]; then \
   for spork19 in $(CLEANUPS) nonexistentishfileforlist; do \