Is there a runtime variable that can be checked during tree generation if the scons -c
flag has been provided?
Additional Context:
Suppose you have a Sconscript that generates a target "TARG" which can be built, and it is convenient when building TARG to also check a couple filesystem things, create a directory, copy in some files.
For annoying unrelated reasons, we don't have the option of adding the SCons "Copy" operation to the TARG build tree, so we want to just add 'def do_prepare_output_directory(): ...`.
Only problem is we don't want to do this in the case of scons -c TARG
. What should I do to confirm that we're doing a regular build command and not a clean command?