[Scons-dev] peculiar issue with aliases and targets
Tom Tanner (BLOOMBERG/ LONDON)
ttanner2 at bloomberg.net
Wed Nov 14 06:23:21 EST 2012
Just a question as to whether or not this is a bug or intentional behaviour:
If I define something as both an 'alias' and a 'target'
if (some condition):
env.Alias('all', program)
....
env.Depends('all', otherprogram)
env.Command('all', someotherprogram, Touch('$TARGET'))
there's no warning at all, but the result is somewhat confusing, as the command will get executed or not depending on the value of 'some condition' (that line happens to be in a SConscript file, not in the main SConstruct and it took a while to find it)
Is it possible to detect you are trying to mix an alias with a not-alias, and stop processing?
More information about the Scons-dev
mailing list