Scons: Make some Action objects fit the abreviated output format.
authorGabe Black <gblack@eecs.umich.edu>
Tue, 2 Aug 2011 10:22:11 +0000 (03:22 -0700)
committerGabe Black <gblack@eecs.umich.edu>
Tue, 2 Aug 2011 10:22:11 +0000 (03:22 -0700)
SConstruct
src/mem/ruby/SConscript

index 6074675c8f3c0016a61fb49b9142bf1ce9a8a208..5699cda73e21d23a43d94aad112467d2e9435fed 100755 (executable)
@@ -835,13 +835,8 @@ def build_config_file(target, source, env):
     f.close()
     return None
 
-# Generate the message to be printed when building the config file.
-def build_config_file_string(target, source, env):
-    (variable, value) = [s.get_contents() for s in source]
-    return "Defining %s as %s in %s." % (variable, value, target[0])
-
 # Combine the two functions into a scons Action object.
-config_action = Action(build_config_file, build_config_file_string)
+config_action = MakeAction(build_config_file, Transform("CONFIG H", 2))
 
 # The emitter munges the source & target node lists to reflect what
 # we're really doing.
index 3c9c02fe22949033eefe747e4a1a55f2bc49097e..d52383d09b7785ce0b9f372705c9c63ebe4fd742 100644 (file)
@@ -86,7 +86,8 @@ def MakeIncludeAction(target, source, env):
 
 def MakeInclude(source):
     target = generated_dir.File(basename(source))
-    env.Command(target, source, MakeIncludeAction)
+    include_action = MakeAction(MakeIncludeAction, Transform("MAKE INC", 1))
+    env.Command(target, source, include_action)
 
 MakeInclude('slicc_interface/AbstractEntry.hh')
 MakeInclude('slicc_interface/AbstractCacheEntry.hh')