Fix doc bug #2502 (Ignore example was wrong)
authorgaryo <garyo@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Mon, 11 Jan 2010 02:53:30 +0000 (02:53 +0000)
committergaryo <garyo@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Mon, 11 Jan 2010 02:53:30 +0000 (02:53 +0000)
git-svn-id: http://scons.tigris.org/svn/scons/trunk@4606 fdb21ef1-2011-0410-befe-b5e4ea1792b1

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

index f0fa853e018e1ff84f5d7bfc85e0ece801dd4daa..50669737ee3d0800c37ba0096c07d9912015c2ee 100644 (file)
 
     <scons_example name="ignore">
       <file name="SConstruct" printme="1">
-      hello = Program('hello.c')
-      Ignore(hello, 'hello.h')
+      hello_obj=Object('hello.c')
+      hello = Program(hello_obj)
+      Ignore(hello_obj, 'hello.h')
       </file>
       <file name="hello.c">
       #include "hello.h"
index 0e9740f46541b7c674ebde8905669cdfec0896c9..4676048040d45487baa0321a6a9918922c008e4c 100644 (file)
     </para>
 
     <programlisting>
-      hello = Program('hello.c')
-      Ignore(hello, 'hello.h')
+      hello_obj=Object('hello.c')
+      hello = Program(hello_obj)
+      Ignore(hello_obj, 'hello.h')
     </programlisting>
 
     <!-- XXX mention that you can use lists for target and source? -->