Boost logo

Boost-Build :

Subject: Re: [Boost-build] Includes scanner in custom action
From: Vladimir Prus (ghost_at_[hidden])
Date: 2010-09-04 08:43:59


On Thursday 02 September 2010 10:04:44 Piotr Jachowicz wrote:

> Hello,
>
> I have some template files (.imp), used to generate cpp
>
> make schema.cpp : schema.imp : @schema : <location>. ;
>
> actions schema
> {
> cd $(>:D)
> genFromSchema -I. $(>:D=)
> }
>
> So far so good. But it showed that schema.imp can include other files, using
> C #inlcude syntax. Touching included files does not make schema.cpp
> regenerate.
>
> Is there a way to use standard scanner to trace when schema.cpp should be
> rebuild?

Piotr,

the attached Jamroot appears to do the trick for me.

HTH,

--
Vladimir Prus
http://vladimir_prus.blogspot.com
Boost.Build: 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