Boost logo

Boost-Build :

Subject: Re: [Boost-build] adding to the "clean" target
From: Stefan Seefeld (stefan_at_[hidden])
Date: 2015-05-18 20:20:12

On 18/05/15 03:03 AM, Vladimir Prus wrote:
> On 5/16/2015 9:01 PM, Stefan Seefeld wrote:
>> Hello,
>> I'm building examples in Boost.Python's examples folder(s). Running
>> `bjam clean` will clean up some of the files, but no all. How can I
>> augment the "clean" rule to do additional cleanup ?
> Stefan,
> the best way to is to identify those files, and make sure that
> python.jam creates targets for them. Typically, it's done by
> making sure these files are listed as outputs of corresponding
> generators.
> Does this help?

Sorry, I'm not very familiar with, and don't kow what
"output of generators" means.

I'm looking at, which
defines a new 'run-test' rule and some test targets. When I run `bjam
test` it builds (and runs) those tests, but `bjam clean` fails to remove
any of the files generated in the process. I'm wondering what is missing.
(For example: could the 'run-test' rule itself declare the additional
output to be removed via the 'clean' target ? If not, what would be the
appropriate way to do that ?)

>> PS: mentions
>> "b2" to be the new name instead of "bjam", since release 1.47. However,
>> I'm running Fedora 22, which contains boost 1.55, and the executable is
>> still called "bjam". It might be worthwhile referencing that name in the
>> docs a little longer...
> It would be awkward to write "b2 or bjam" everywhere in docs, and I
> think this passage is sufficient.

That's only part of a FAQ, and it's actually inaccurate (as it would
make me believe that for the boost version I have I need 'b2', which
doesn't exist.
All I'm saying is that there might be a more prominent place, and the
wording could be a little less exclusive.


      ...ich hab' noch einen Koffer in Berlin...

Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at