Make sure obj.name == obj.target for 'scratch' programs; fixes issue reported in ns-3-users with ./waf --run scratch/simple not working.
authorGustavo J. A. M. Carneiro <gjc@inescporto.pt>
Wed, 26 Nov 2008 11:44:47 +0000
changeset 3927 a2a992900b0b
parent 3921 ee1f01c019f4
child 3928 c05de2ba481f
Make sure obj.name == obj.target for 'scratch' programs; fixes issue reported in ns-3-users with ./waf --run scratch/simple not working.
wscript
--- a/wscript	Tue Nov 25 14:45:46 2008 +0000
+++ b/wscript	Wed Nov 26 11:44:47 2008 +0000
@@ -331,11 +331,13 @@
             obj.path = obj.path.find_dir('scratch')
             obj.find_sources_in_dirs(filename)
             obj.target = os.path.join(filename, filename)
+            obj.name = obj.target
         elif filename.endswith(".cc"):
             name = filename[:-len(".cc")]
             obj = bld.create_ns3_program(name, all_modules)
             obj.source = "scratch/%s" % filename
             obj.target = "scratch/%s" % name
+            obj.name = obj.target
 
 
 ##