X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=scripts%2Fclam%2Fcpp%2Frules.def;h=a6821bf4037bd1f3400ce48753f88d12cfe990c5;hb=46b407c692a357ac185d58208b0359a60355dc3a;hp=ba51dabb83e9e12f3edbb15d3943b12335e5ff2f;hpb=090ac080acb0cc4f3fd4c9332b08d2dd5fb77394;p=feisty_meow.git diff --git a/scripts/clam/cpp/rules.def b/scripts/clam/cpp/rules.def index ba51dabb..a6821bf4 100644 --- a/scripts/clam/cpp/rules.def +++ b/scripts/clam/cpp/rules.def @@ -398,14 +398,6 @@ ACTUAL_LAST_TARGETS = post_compilation $(LAST_TARGETS) ############################################################################ -# Add the obligatory junk to be cleaned up. -set_cleanups_variable: - echo hey we are in the set cleanups variable and pwd is: $(shell pwd) - $(eval CLEANUPS += $(ACTUAL_TARGETS) $(ACTUAL_TARGETS:%.exe=%) ) - echo "yoyo, cleanups variable is now: $(CLEANUPS)" - -############################################################################ - # This section defines the rules used to generate various objects from their # source files. @@ -443,6 +435,17 @@ endif ############################################################################ +# trying to delay loading this as long as possible so the built in rule system for CLEANUPS can run with the right values. +# so far not working right! +#hmmm: fix this. + +# Adds the main CLAM system in to get some work done. This should be placed +# after the module's rules are defined and before the module's targets are +# defined. +include rules.def + +############################################################################ + # C++ source to object file translation. # if there is a special set of flags for this source file, we use them # instead of the default compiler flags. @@ -662,11 +665,6 @@ endif # Now the active part of the make process... -# Adds the main CLAM system in to get some work done. This should be placed -# after the module's rules are defined and before the module's targets are -# defined. -include rules.def - # make sure we really want to include the dependencies file. ifeq "$(TYPE)" "hierarchy" # no dependencies for a simple hierarchy builder.