Issue 2260, document Clean() pattern for intermediate directories
authorGregNoel <GregNoel@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Tue, 24 Feb 2009 22:47:43 +0000 (22:47 +0000)
committerGregNoel <GregNoel@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Tue, 24 Feb 2009 22:47:43 +0000 (22:47 +0000)
git-svn-id: http://scons.tigris.org/svn/scons/trunk@4049 fdb21ef1-2011-0410-befe-b5e4ea1792b1

doc/man/scons.1

index f3988f4a4de6425b50b656c71bd23be6d35140ca..240972c21c36c6e58b3d515a043cc5211b2a5eaf 100644 (file)
@@ -3000,6 +3000,14 @@ Clean('dist', env.Program('hello', 'hello.c'))
 Clean(['foo', 'bar'], 'something_else_to_clean')
 .EE
 
+In this example,
+installing the project creates a subdirectory for the documentation.
+This statement causes the subdirectory to be removed
+if the project is deinstalled.
+.ES
+Clean(docdir, os.path.join(docdir, projectname))
+.EE
+
 '\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
 .TP
 .RI Command( target ", " source ", " action ", [" key = val ", ...])"
@@ -3513,7 +3521,7 @@ print env.Dump('CCCOM')
 .IP
 will print:
 .ES
-\&'$CC $CCFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -c -o $TARGET $SOURCES'
+\&'$CC -c -o $TARGET $CCFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS $SOURCES'
 .EE
 
 .ES