diff options
author | Steven Knight <knight@baldmt.com> | 2003-08-10 14:59:15 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2003-08-10 14:59:15 (GMT) |
commit | 94b5aa145df7b763a262dd163203e20879f242f3 (patch) | |
tree | 9112f179649bfc9a8ad24a3a7d5195c20fd60ee0 /doc | |
parent | ac34715d7fe736ae03e623a2d15e2e0e7f079503 (diff) | |
download | SCons-94b5aa145df7b763a262dd163203e20879f242f3.zip SCons-94b5aa145df7b763a262dd163203e20879f242f3.tar.gz SCons-94b5aa145df7b763a262dd163203e20879f242f3.tar.bz2 |
Allow prefixes and suffixes to be selected from dictionaries keyd by source file suffix.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/man/scons.1 | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/man/scons.1 b/doc/man/scons.1 index 8df46cf..b9849c6 100644 --- a/doc/man/scons.1 +++ b/doc/man/scons.1 @@ -4946,14 +4946,14 @@ builder with the target. .IP prefix The prefix that will be prepended to the target file name. This may be a simple string, or a callable object that takes -a construction environment as its argument +two arguments, a construction environment and a list of sources, and returns a prefix. .ES b = Builder("build_it < $SOURCE > $TARGET" prefix = "file-") -def gen_prefix(env): +def gen_prefix(env, sources): return "file-" + env['PLATFORM'] + '-' b = Builder("build_it < $SOURCE > $TARGET" prefix = gen_prefix) @@ -4962,7 +4962,7 @@ b = Builder("build_it < $SOURCE > $TARGET" .IP suffix The suffix that will be appended to the target file name. This may be a simple string, or a callable object that takes -a construction environment as its argument +two arguments, a construction environment and a list of sources, and returns a suffix. If the suffix is a string, then .B scons @@ -4976,7 +4976,7 @@ to the beginning if one is desired. b = Builder("build_it < $SOURCE > $TARGET" suffix = "file-" -def gen_suffix(env): +def gen_suffix(env, sources): return "." + env['PLATFORM'] + "-file" b = Builder("build_it < $SOURCE > $TARGET" suffix = gen_suffix) |