ha, much nicer now. everything is cleaning right, and the code looks good. moved the too knowledgeable pieces out of the base clam code and into cpp. nice.
cpp_add_to_cleanups_variable:
# echo here is actual targets before hand $(ACTUAL_TARGETS)
- $(eval CLEANUPS = $(ACTUAL_TARGETS:$(STATIC_LIBRARY_DIR)/%.library=$(STATIC_LIBRARY_DIR)/$(LIB_PREFIX)%.a) $(CLEANUPS) )
+ $(eval CLEANUPS = $(ACTUAL_TARGETS:%.exe=%) $(ACTUAL_TARGETS:$(STATIC_LIBRARY_DIR)/%.library=$(STATIC_LIBRARY_DIR)/$(LIB_PREFIX)%.a) $(CLEANUPS) )
# echo "IN CPP, new CLEANUPS variable: $(CLEANUPS)"
+#fodder for anything missing a cleanup.
+# $(eval CLEANUPS = $(ACTUAL_TARGETS) $(ACTUAL_TARGETS:%.dll=%.so) $(ACTUAL_TARGETS:%.so=%.dll) $(CLEANUPS) )
#dynamic is taken care of in clam base still?
#DYNAMIC_LIBRARY_DIR
# 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 \
# we won't do the full build if they told us to just do the bootstrap.
if [ -z "$JUST_BOOTSTRAP_APPS" ]; then
echo Cleaning up the temporary files that were built.
- bash "$BUILD_SCRIPTS_DIR/whack_build.sh" clean
+ bash "$BUILD_SCRIPTS_DIR/whack_build.sh"
+#wrong! we don't want to whack it all. clean
# recreate our useful junk directories...
mkdir -p "$GENERATED_DIR"
"$PRODUCTION_DIR/install" \
"$PRODUCTION_DIR/logs" \
"$PRODUCTION_DIR/waste"
+# last few mentioning production dir are to clean older code.
# echo $(date): " cleaning generated files in source hierarchy..."
if [ "$clean_src" == "clean" -o "$clean_src" == "CLEAN" ]; then
echo $(date): " ** aggressive cleaning activated..."
+
+ # get rid of the build binaries.
+ rm -rf "$CLAM_BINARY_DIR"
+
perl "$FEISTY_MEOW_SCRIPTS/files/zapdirs.pl" "$FEISTY_MEOW_APEX" >>"$CRUDFILE"
fi