Make sure obj.name == obj.target for 'scratch' programs; fixes issue reported in ns-3-users with ./waf --run scratch/simple not working.

This commit is contained in:
Gustavo J. A. M. Carneiro
2008-11-26 11:44:47 +00:00
parent 77fe2e1cbb
commit 378f7e02be

View File

@@ -331,11 +331,13 @@ def add_scratch_programs(bld):
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
##