[Scons-users] read cleaning objects
Dirk Bächle
tshortik at gmx.de
Sat Mar 15 12:23:11 EDT 2014
On 15.03.2014 15:02, Philipp Kraus wrote:
>
> [...]
>>> 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"
>
You'll probably have to make up your mind then. A target is a target,
and you can always build it and clean (reverse build) it.
So, if you don't want "scons" (the default target) to build all of your
aliases, you can't use "scons -c" (the reverse build of the default
target) but will have to define a target/alias with a different name
that you then have to specify on the command line.
Dirk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://four.pairlist.net/pipermail/scons-users/attachments/20140315/35b8868a/attachment.htm
More information about the Scons-users
mailing list