Make sure obj.name == obj.target for 'scratch' programs; fixes issue reported in ns-3-users with ./waf --run scratch/simple not working.
--- 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
##