You can use the Command function to run any external command that you run through Popen, and you can use AlwaysBuild to ensure that your command always runs, even if the target file exists. Scons does not like dependency loops, so leave the original list empty.
myfile = env.Command('myfile.out', [], 'echo Hello world > $TARGETS') env.AlwaysBuild(myfile)
The scons wiki also has a PhonyTargets recipe that makes it easy to configure many simple commands.
Dave bacher
source share