Boost logo

Boost-Build :

From: Rene Rivera (grafikrobot_at_[hidden])
Date: 2006-09-27 22:14:20

King, Steven R wrote:
> Is there a way to copy arbitrary files into the gristed output directory
> of a 'run' target? I know the run target can take 'input files' that
> appear on the command line. However, in our case the extra files are
> not appropriate as command line parameters, so we want to copy them to
> the same directory as the 'run' target binary.

I do something equivalent but for regular targets, and copying around
header files. You can use the "make" target to copy a file. Something like:

import common ;
make myfile.txt : some-path/myfile.txt : common.copy ;
explicit myfile.txt ;

And a lib target might refer to the file as:

lib my : foo.cpp : <dependcy>myfile.txt ;


-- Grafik - Don't Assume Anything
-- Redshift Software, Inc. -
-- rrivera/ - grafik/
-- 102708583/icq - grafikrobot/aim - grafikrobot/yahoo

Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at