List Info

Thread: Error "target has no type" when copy files to install folder




Error "target has no type" when copy files to install folder
country flaguser name
Germany
2007-05-04 10:32:49
Hi

I am trying to copy some additional files from our source
folder into 
the target location, using the install rule:

Jamroot:
...
path-constant target     : build/target_fs/opt/test
path-constant target_lib : $(target)/lib
build-project testapp ;

testapp/Jamfile:
... builds testapp, depends on the library test

test/Jamfile:
...
lib test : ....
install $(target_lib) : test ;
install $(target)/share : samles/test.xml ;


When I run bjam from the test folder, then the lib is build
and copied to
   build/target_fs/opt/test/lib
and the XML file is copied into
   build/target_fs/opt/test/share

But when I run bjam from the project root, I get an error
saying:
error: target { common%common.copy-test.xml. {
samples/test.xml. } } has 
no type

What is going on?

Is there another way to copy files during the install phase,
like a copy 
rule or something? Or do I need to tell bjam than XML files
have a type? 
But how would I do this?

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )