Fix timestamp-related Decider() examples by using Object() instead of
authorstevenknight <stevenknight@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Sat, 16 Jan 2010 16:02:52 +0000 (16:02 +0000)
committerstevenknight <stevenknight@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Sat, 16 Jan 2010 16:02:52 +0000 (16:02 +0000)
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

doc/user/depends.in
doc/user/depends.xml

index 8ba05048affde3b379e687eb68d4d7bda9606bb1..9a57055ec8c0f53e7aa6baba04728a040efc4a1f 100644 (file)
 
       <scons_example name="newer">
         <file name="SConstruct" printme="1">
-        Program('hello.c')
+        Object('hello.c')
         Decider('timestamp-newer')
         </file>
         <file name="hello.c">
       </para>
 
       <scons_output example="newer" os="posix">
-         <scons_output_command>scons -Q hello</scons_output_command>
+         <scons_output_command>scons -Q hello.o</scons_output_command>
          <scons_output_command>touch hello.c</scons_output_command>
-         <scons_output_command>scons -Q hello</scons_output_command>
+         <scons_output_command>scons -Q hello.o</scons_output_command>
       </scons_output>
 
       <para>
       </para>
 
       <sconstruct>
-        Program('hello.c')
+        Object('hello.c')
         Decider('make')
       </sconstruct>
 
 
       <scons_example name="match">
         <file name="SConstruct" printme="1">
-        Program('hello.c')
+        Object('hello.c')
         Decider('timestamp-match')
         </file>
         <file name="hello.c">
       </para>
 
       <scons_output example="match" os="posix">
-         <scons_output_command>scons -Q hello</scons_output_command>
+         <scons_output_command>scons -Q hello.o</scons_output_command>
          <scons_output_command>touch -t 198901010000 hello.c</scons_output_command>
-         <scons_output_command>scons -Q hello</scons_output_command>
+         <scons_output_command>scons -Q hello.o</scons_output_command>
       </scons_output>
 
       <para>
index cfff07b6f8a114c6bc6ed4b2b82e617c4d5d76f3..c9207d56e499bf11d84adf48e9b210b096db92f1 100644 (file)
       </para>
 
       <programlisting>
-        Program('hello.c')
+        Object('hello.c')
         Decider('timestamp-newer')
       </programlisting>
 
       </para>
 
       <screen>
-         % <userinput>scons -Q hello</userinput>
+         % <userinput>scons -Q hello.o</userinput>
          cc -o hello.o -c hello.c
-         cc -o hello hello.o
          % <userinput>touch hello.c</userinput>
-         % <userinput>scons -Q hello</userinput>
+         % <userinput>scons -Q hello.o</userinput>
          cc -o hello.o -c hello.c
-         cc -o hello hello.o
       </screen>
 
       <para>
       </para>
 
       <programlisting>
-        Program('hello.c')
+        Object('hello.c')
         Decider('make')
       </programlisting>
 
       </para>
 
       <programlisting>
-        Program('hello.c')
+        Object('hello.c')
         Decider('timestamp-match')
       </programlisting>
 
       </para>
 
       <screen>
-         % <userinput>scons -Q hello</userinput>
+         % <userinput>scons -Q hello.o</userinput>
          cc -o hello.o -c hello.c
-         cc -o hello hello.o
          % <userinput>touch -t 198901010000 hello.c</userinput>
-         % <userinput>scons -Q hello</userinput>
+         % <userinput>scons -Q hello.o</userinput>
          cc -o hello.o -c hello.c
-         cc -o hello hello.o
       </screen>
 
       <para>