Haven't tried this but it should work...

On Fri, Jul 31, 2015 at 8:53 AM, Paul A. Bristow <pbristow@hetp.u-net.com> wrote:
I need to (re-)generate some tables as *.qbk files before building the documentation proper.

# Generate Quickbook tables of types and their numeric_limits.
run fixed_point_types_table.cpp ;

local fixed_point_types_table = [ run fixed_point_types_table.cpp ] ; 

writes the files

How do I ensure that

1  The files are only re-generated when the source .cpp has changed ( been edited).

2  The files are written before the main Quickbook is processed to xml with

xml fixed_point
  :
    fixed_point.qbk
  :
    <dependency>autodoc # doxygen
  ;

I looks as though I need a <dependency>

but I can't see what the target would be called.

<dependency>$(fixed_point_types_table)

3  I may have more than one .cpp file to run.  How can I run all the .cpp in the (doc/) folder?

Use an an alias and glob+run each.

-- Rene Rivera
-- Grafik - Don't Assume Anything
-- Robot Dreams - http://robot-dreams.net
-- rrivera/acm.org (msn) - grafikrobot/aim,yahoo,skype,efnet,gmail