Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2007-12-01 13:07:52


On Wednesday 28 November 2007 21:34:47 YiSu CangHai wrote:
> I was wondering how to do following thing using bjam:
> 1. Build a parser tool in Jamfile, for example:
> exe parser : source file ... ;
>
> 2, Then run the parser to generate other files.
>
> 3. The generated files will be used in Jamfile to build other targets.
>
> If I use unit-test to build parser and let it run, it will only run once
> when the parser is built successfully. Not anymore after that.
> I can not use ALWAYS either, becasue I don't wnat the parser tool itself
> being rebuild everytime it is used to parse something.
>
> Can anyone show me the correct way? Thanks in advance.

Try using the 'make' rule, passing the 'parser' target and sources to
the parser as the sources of the 'make' rule?

- 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