|
Boost-Build : |
From: David Abrahams (david.abrahams_at_[hidden])
Date: 2002-01-04 18:35:58
----- Original Message -----
From: "Rene Rivera" <grafik666_at_[hidden]>
even using $(PWD) doesn't simplify it much. It just eliminates the
> ABSOLUTE call. The loop for finding the top project file is a little
easier to
> look at:
>
> local d_ = $(PWD) ;
> while ($(d_) != $(d_:P))
> {
> SEARCH on $(PROJECT_CONFIG) : $(d_) ;
> BIND $(PROJECT_CONFIG) ;
> if $(PROJECT_CONFIG)
> {
> include $(PROJECT_CONFIG) ;
> }
> d_ = $(d_:P) ;
> }
local d = .
for local x in [ splitpath $(PWD) ]
{
SEARCH on $(PROJECT_CONFIG) += $(d) ;
d = $(d)/.. ;
}
include $(PROJET_CONFIG) ;
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