[Scons-users] How to rebuild if target changes
Непомнящий Евгений Игоревич
johnny at topazelectro.ru
Wed Mar 5 01:42:23 EST 2014
Hello!
I have sconstruct:
------
env = Environment(tools=['textfile'])
env.Textfile('test.h', ['test1'])
------
If I run it, I get file test.h.
But If I change file test.h manually and run scons, I receive message
" `.' is up to date. "
How to tell scons to rebuild file, if it changes since last build?
z:\fillTest>scons
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
Creating 'test.h'
scons: done building targets.
z:\fillTest>type test.h
test1
z:\fillTest>echo "qweerwterty" >> test.h
z:\fillTest>type test.h
test1"qweerwterty"
z:\fillTest>scons
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
scons: `.' is up to date.
scons: done building targets.
z:\fillTest>type test.h
test1"qweerwterty"
Thank you!
More information about the Scons-users
mailing list