[Scons-users] read cleaning objects
    Philipp Kraus 
    philipp.kraus at tu-clausthal.de
       
    Sat Mar 15 10:02:23 EDT 2014
    
    
  
Am 13.03.2014 um 18:15 schrieb Dirk Bächle <tshortik at gmx.de>:
> 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>:
>> 
>>> 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.
In this case the default target builds imho all aliases, but I don't want this. The default
target should be only run a "clean"
Phil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://four.pairlist.net/pipermail/scons-users/attachments/20140315/b78273c9/attachment.htm 
    
    
More information about the Scons-users
mailing list