Boost logo

Boost-Build :

From: TEMPLIE Cédric (cedric.templie_at_[hidden])
Date: 2004-12-16 04:12:11


I try that, but it does not solve my problem....

my_sources = ... ;
my_headers = ... ;

lib my_lyb : $(my_sources) ;

alias export_files : export_headers export_lib ;

stage export_headers : $(my_headers) : <location>$(MY_HEADERS_LOCATION) ;
stage export_lib : my_lib : <location>$(MY_LIB_LOCATION) ;

At least, headers and libs are copied in the right place, but even if
my_lib failed, headers are copied....

Thanks in advance for any help.

TEMPLIE Cédric wrote:
> Hi,
>
> I want to do a basic thing, export the headers of a project, only when
> this one build....
>
> my_sources = ... ;
> my_headers = ... ;
>
> lib my_lyb : $(my_sources) ;
>
> stage export_headers : $(my_headers) : <location>$(MY_HEADERS_LOCATION) ;
>
> I don't know how to express the dependency between the my_lib building
> and export_headers rule...
> I try that, but it don't care if the lib is build or not, moreover, it
> copy my_lib results (dll + lib) (when it succeed to build) in
> $(MY_HEADERS_LOCATION)...
>
> stage export_headers : $(my_headers) my_lib :
> <location>$(MY_HEADERS_LOCATION) ;
>
> Thanks in advance
>
> TEMPLIE Cédric
>
>
>
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
>
>

 


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