|
Boost-Build : |
Subject: Re: [Boost-build] [boost-build] Using glob rule on automatically generated files
From: Darren Garvey (lists.drrngrvy_at_[hidden])
Date: 2010-11-08 09:38:18
On 8 November 2010 13:04, Rene Rivera <grafikrobot_at_[hidden]> wrote:
> On 11/8/2010 6:47 AM, Darren Garvey wrote:
>
>> Hi,
>>
>> I'm using a script to generate some files and then using an install rule
>> to
>> copy generated headers around.
>>
>> I'm having a problem with the [ glob *.hpp ] rule being evaluated before
>> the
>> SHELL command that generates the .hpp files runs. Sounds exactly like this
>> problem: http://comments.gmane.org/gmane.comp.lib.boost.build/20240.
>>
>> Is the conclusion that it's best doing this outside of Boost Build
>> entirely?
>> Have things changed and there is a way to make this work nicely?
>>
>> Any help would be much appreciated.
>>
>
> The only change from when that thread dates to.. Is that now there's the
> capability to run actions "before" the build starts. But I don't know if it
> helps in your use case. Perhaps Volodya can think of something.
>
I can work around it by including a "cp ..." shell command in my generation
rule. This doesn't help with cleaning up the files but I can live with that.
Thanks for the info Rene.
-- Darren
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