From bc69f5389a6e48999976482b8fbc9382f7731667 Mon Sep 17 00:00:00 2001 From: GregNoel Date: Tue, 24 Feb 2009 22:47:43 +0000 Subject: [PATCH] Issue 2260, document Clean() pattern for intermediate directories git-svn-id: http://scons.tigris.org/svn/scons/trunk@4049 fdb21ef1-2011-0410-befe-b5e4ea1792b1 --- doc/man/scons.1 | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/doc/man/scons.1 b/doc/man/scons.1 index f3988f4a..240972c2 100644 --- a/doc/man/scons.1 +++ b/doc/man/scons.1 @@ -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 -- 2.26.2