From: Vladimir Prus (ghost_at_[hidden])
Date: 2007-01-06 11:13:07
now we have *documented* new rule, called 'generate', that,
similar to 'make' allows one to describe custom transformations
right in Jamfile, but unlike 'make' operates with virtual targets.
The new rule is almost as powerful as generators, but does not
require declaring class, registering it, and generally has
less syntax noise -- so it's good for quick tasks.
The example usage is:
rule generate-example ( project name : property-set : sources * )
# Fancy logic creating virtual targets.
generate a2 : a.cpp : <generating-rule>@generate-example ;
And the complete example is in example/generate directory in CVS HEAD,
and the docs are:
Comments will be appreciated.
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