Boost logo

Boost-Build :

From: John Maddock (john_at_[hidden])
Date: 2005-10-31 13:31:04


Hopefully this is an easy one:

How do I make a source file depend upon a FileClone of another file?

Suppose I have a source file in one directory, and I want to copy it to
another directory and build from there, how do I do it? (Yes I realise it's
a dumb idea in general, but some test results aren't getting assigned to TR1
because the actual test source is someplace else in the Boost tree).

At the moment I'm trying:

for local file2 in [ GLOB $(BOOST_ROOT)/libs/config/test :
has_tr1*fail.cpp ]
{
FileClone $(file2) $(BOOST_ROOT)/libs/tr1/test/config/$(file2:B)$(file2:S) ;
all_rules += [ compile-fail
$(BOOST_ROOT)/libs/tr1/test/config/$(file2:B)$(file2:S) ] ;
}

which does copy the files but doesn't build them, because bjam thinks that
the sources don't exist!

So... what am I doing wrong?

All in bbv1 BTW.

Thanks,

John

 


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