How do I constrain the SCons Command builder to run only if its dependencies have changed?
- by saffsd
I am using the Command builder in scons to specify that a particular script needs to be invoked to produce a particular file.
I would like to only run the script if it has been modified since the file was previously generated. The default behaviour of the Command builder seems to be to always run the script. How can I change this?
This is my current SConstruct:
speed = Command('speed_analysis.tex','','python code/speed.py')
report = PDF(target = 'report.pdf', source = 'report.tex')
Depends(report, speed)