Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2006-01-24 11:29:26


On Tuesday 24 January 2006 18:59, Renaud Lepere wrote:
> > > In makefile world, svnrev can be used using a line
> > >
> > > svnrev.h : main.cpp gui.cpp gui.h storage.cpp storage.h
> > > svnrev $?
> > >
> > > How can i do something similar in bbv2 ?
> >
> > The simplest way, I believe, is this:
> >
> > make svnrev.h : main.cpp gui.cpp gui.h storage.cpp storage.h
> >
> > : svnrev ;
> >
> > actions svnrev
> > {
> > svnrev -o$(<) $(>)
> > }
>
> It's impressive and really simple ! Thanks a lot.
> I just still have a little problem : svnrev.h is generated
> in the bin/... directory and if i include it in one of my file
> it can not be found at compile it. What should i do ?

Try <implicit-dependency> as documented at:
  
http://boost.org/boost-build2/doc/html/bbv2/reference/jamfiles.html#bbv2.reference.headers

- Volodya


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