Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2006-02-06 08:01:57


On Friday 03 February 2006 20:55, Renaud Lepere wrote:

> I'm trying to make a specific install rule, and i want to call
> this install rule in all my project.
>
> rule my-install ( install-name : project-name )
> {
> install $(install-name)-bin : $(project-name)
>
> : <location>../build/bin
> : <install-type>SHARED_LIB ;
>
> install $(install-name)/lib : $(project-name)
>
> : <location>../build/lib
> : <install-type>STATIC_LIB ;
>
> }

You can use this:

  install $(install-name)/bin : ........... ;
  explicit $(install-name)/bin ;

  alias $(install-name) : $(install-name)/bin ;

Then, using explicit in $(install-name) will have the usual effect. The code
you've shown above won't work since you don't define any target named
$(install-name).

HTH,
Volodya


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