[Scons-users] read cleaning objects
Dirk Bächle
tshortik at gmx.de
Thu Mar 13 13:15:08 EDT 2014
On 13.03.2014 09:37, Philipp Kraus wrote:
> Hi Dirk,
>
> Am 13.03.2014 um 09:16 schrieb Dirk Bächle <tshortik at gmx.de
> <mailto:tshortik at gmx.de>>:
>
>> On 13.03.2014 07:18, Philipp Kraus wrote:
>>> Hello,
>>>
>>> I have defined a lot of alias targets with a set of different clean
>>> calls e.g.:
>>> env.Clean( myalias, [ "*.xxx", "*.log" ] )
>>>
>>> How can I read the cleaning list in another target e.g.
>>> env.Clean( myalias2, ["*.txt"] + env.Targets["myalias"].getClean() ) ?
>>
>> this looks like you're asking for how to do X, but actually need to
>> do Y ( see http://www.catb.org/esr/faqs/smart-questions.html ).
>> Can you please give a little more context about what you're trying to
>> achieve with this?
>
> I have defined a lot of different alias and some alias use a list of
> additional cleaning files.
> I would like to create a "blank" target (which does nothing), that
> calls alls all alias definitions e.g.:
>
> env.Clean( myalias, [ "*.xxx", "*.log" ] )
> env.Clean( myalias, ["*.txt", "*.html"] )
>
> default = env.Command("#pseudodefault", "", "")
> env.Default(default)
> default.Clean( default, [ "*.xxx", "*.log" ] + ["*.txt", "*.html"] )
>
> So on "scons -c" I would like to call all clean definition of all
> alias definition
>
This means you'll have to add your defined aliases to the Default() target:
env.Default(myalias)
env.Default(myalias2)
, and you're done.
Dirk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://four.pairlist.net/pipermail/scons-users/attachments/20140313/7f1dddf3/attachment.htm
More information about the Scons-users
mailing list