Boost logo

Boost-Build :

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


Hi Renaud,
> I'm using a small tool svnrev with subversion version
> control. svnrev is used to generate a file (svnrev.h)
> containing macros about version/date given informations
> ($Id$) in source files ...
>
> 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$(<) $(>)
}

HTH,
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