Boost logo

Boost-Build :

From: andrewjmcd (andrewjmcd_at_[hidden])
Date: 2005-03-03 03:05:15


--- In jamboost_at_[hidden], Vladimir Prus <ghost_at_c...> wrote:
> On Wednesday 02 March 2005 18:10, andrewjmcd wrote:
> > I have been trying to make an automatic version updater.
> >
> > Using the excellent documentation for the generator creating
> > a python script that increments the build number and produces
> > the c code was easy.
> >
> > Unfortunately I don't know how to automatically 'touch' the
> > input file so that it must compile the next time around.
> >
> > Any suggestions?
>
> Supposing you have
>
> actions timestamp
> {
> }
> ....
>
> just add
>
> rule timestamp ( target * : sources * : properties * )
> {
> ALWAYS $(target) ;
> }
>
> HTH,
> Volodya

WOW

That was easy.
I totally overlooked the rule.

Thanks
Andrew

 


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