|
Boost-Build : |
From: Vladimir Prus (ghost_at_[hidden])
Date: 2005-09-01 01:57:53
On Thursday 01 September 2005 03:18, Zhon Johansen wrote:
> I have a perl script that generates C++ test code that is to be used in
> the build. My make script looks like the following:
>
> test-runner.cpp: test-file.h
> perl make-test-runner -output test-runner.cpp
In V2:
make test-runner.cpp : test-file.h : make-test-runner ;
actions make-test-runner
{
perl make-test-runner -output $(<)
}
>
> test-runner.exe: test-runner.cpp
> echo build test-runner.exe
You can either use 'make' rule again, or
import testing ;
unit-test test-runner : test-runner.cpp ;
HTH,
Volodya
-- Vladimir Prus http://vladimir_prus.blogspot.com Boost.Build V2: http://boost.org/boost-build2
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