[Scons-users] read cleaning objects

Philipp Kraus philipp.kraus at tu-clausthal.de
Thu Mar 13 04:37:55 EDT 2014


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

Phil

-----------------------------------------------------
Dipl.-Inf. Philipp Kraus
Clausthal University of Technology
Department of Informatics
Julius-Albert-Str. 4, Room 211
D-38678 Clausthal-Zellerfeld

Phone: +49 - 5323 / 72-7109
EMail: philipp.kraus at tu-clausthal.de

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://four.pairlist.net/pipermail/scons-users/attachments/20140313/50393eaf/attachment-0001.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 163 bytes
Desc: Message signed with OpenPGP using GPGMail
Url : http://four.pairlist.net/pipermail/scons-users/attachments/20140313/50393eaf/attachment-0001.pgp


More information about the Scons-users mailing list