Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2006-04-07 02:44:02


On Thursday 06 April 2006 00:10, Mark Evans wrote:
> How to properly cast this question?
>
> I am trying to define a rule analagous to 'exe' (with target file, source
> files, etc.) except that I want the target-generating action to ALWAYS be
> executed regardless of file modtimes. Under the covers I am creating an
> instance of file-target. I have tried employing the Jam ALWAYS rule on
> different variants of the target (i.e., the raw target name, the virtual
> target object, etc.) but have yet to discover the magic to make this
> happen. bjam -a is not an option because I don't want the world to
> rebuild, just this one thing. Is there any way to do this?

Hi Mark,

If you have a custom generator, and so have access to the virtual target is
produces, you can do this:

    rule generated-targets ( ......... )
    {
                local the-target = ......
    
          local actual-target = [ $(the-target).actualize ] ;
          ALWAYS $(actual-target) ;
    }

(the same can be in 'run' method as well). If you don't have a custom
generator, define one.

If things still does not work, create a simple example and send it, I'll take
a look.

- Volodya

-- 
Vladimir Prus
http://vladimir_prus.blogspot.com
Boost.Build V2: http://boost.org/boost-build2

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