[Scons-users] How to rebuild if target changes

Gary Oberbrunner garyo at oberbrunner.com
Wed Mar 5 06:46:30 EST 2014


SCons does not check that final target files have been modified outside of
SCons -- only sources, sorry.


On Wed, Mar 5, 2014 at 1:42 AM, Непомнящий Евгений Игоревич <
johnny at topazelectro.ru> wrote:


> 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!

>

> _______________________________________________

> Scons-users mailing list

> Scons-users at scons.org

> http://four.pairlist.net/mailman/listinfo/scons-users

>




--
Gary
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://four.pairlist.net/pipermail/scons-users/attachments/20140305/805e417a/attachment.htm


More information about the Scons-users mailing list