Subject: Re: [Boost-build] Custom clean target
From: Vladimir Prus (vladimir_at_[hidden])
Date: 2008-10-15 14:44:32
Alexander Sack wrote:
> On Wed, Oct 15, 2008 at 12:30 PM, Vladimir Prus
> <vladimir_at_[hidden]> wrote:
>> Alexander Sack wrote:
>>> Hello (again):
>>> Is there a way to extend the clean rule for various targets? I need
>>> added cleanup when I do "bjam --clean" etc. Do I have to make a
>>> separate target to do the dirty work or is there a way to extend the
>>> built-in clean target?
>> Can you tell what extra actions you have to do in clean?
> Clean generated side files from a special tool I invoked via a make or
> notfile target or even a custom generator class.
A custom generator class should accurately report what files it has produced.
And if it does, those files will be cleaned just fine.
> But regardless
> Vladimir, don't you think this is a reasonable request? :D
Well, "I need added cleanup" is not actually a request, because I don't know
what exactly you mean.
1. Do you want --clean to remove some files, that are known to be located
as specific directories, or:
2. You want to specify that a certain target (like make), may produce additional
files, in the same directory as main result, and those files, if present, must
be cleaned, or:
3. You want arbitrary code to be executed on --clean?
Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk