From: stevenknight Date: Sat, 16 Jan 2010 16:02:52 +0000 (+0000) Subject: Fix timestamp-related Decider() examples by using Object() instead of X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=0be0ec900303dd88351e7bd511d55a6a70de2c59;p=scons.git Fix timestamp-related Decider() examples by using Object() instead of Program(), to avoid the downstream "hello" executable sometimes not getting re-linked if the example re-ran within a single second and didn't change the hello.o timestamp. git-svn-id: http://scons.tigris.org/svn/scons/trunk@4625 fdb21ef1-2011-0410-befe-b5e4ea1792b1 --- diff --git a/doc/user/depends.in b/doc/user/depends.in index 8ba05048..9a57055e 100644 --- a/doc/user/depends.in +++ b/doc/user/depends.in @@ -248,7 +248,7 @@ - Program('hello.c') + Object('hello.c') Decider('timestamp-newer') @@ -265,9 +265,9 @@ - scons -Q hello + scons -Q hello.o touch hello.c - scons -Q hello + scons -Q hello.o @@ -281,7 +281,7 @@ - Program('hello.c') + Object('hello.c') Decider('make') @@ -317,7 +317,7 @@ - Program('hello.c') + Object('hello.c') Decider('timestamp-match') @@ -338,9 +338,9 @@ - scons -Q hello + scons -Q hello.o touch -t 198901010000 hello.c - scons -Q hello + scons -Q hello.o diff --git a/doc/user/depends.xml b/doc/user/depends.xml index cfff07b6..c9207d56 100644 --- a/doc/user/depends.xml +++ b/doc/user/depends.xml @@ -259,7 +259,7 @@ - Program('hello.c') + Object('hello.c') Decider('timestamp-newer') @@ -272,13 +272,11 @@ - % scons -Q hello + % scons -Q hello.o cc -o hello.o -c hello.c - cc -o hello hello.o % touch hello.c - % scons -Q hello + % scons -Q hello.o cc -o hello.o -c hello.c - cc -o hello hello.o @@ -292,7 +290,7 @@ - Program('hello.c') + Object('hello.c') Decider('make') @@ -327,7 +325,7 @@ - Program('hello.c') + Object('hello.c') Decider('timestamp-match') @@ -344,13 +342,11 @@ - % scons -Q hello + % scons -Q hello.o cc -o hello.o -c hello.c - cc -o hello hello.o % touch -t 198901010000 hello.c - % scons -Q hello + % scons -Q hello.o cc -o hello.o -c hello.c - cc -o hello hello.o