|
Boost-Build : |
From: Rene Rivera (grafik666_at_[hidden])
Date: 2002-01-03 21:59:43
On 2002-01-03 at 04:37 PM, david.abrahams_at_[hidden] (David Abrahams) wrote:
>There are other reasons why it would be useful to be able to translate a
>path from relative to absolute. Maybe you should just add that capability.
Cool, then. How about adding a builtin rule "ABSOLUTE <target> ;". It just
turns on the absolute flag in the target, like NOTFILE and others do.
>I guess your idea of a BIND rule returning empty when the file isn't found
>in SEARCH or LOCATE would be best.
Totally agree with your Yucks :-)
So a "BIND <target> ;" builtin then it is.
Which means that then the following is possible:
[ if PWD is /home/user/something ]
PROJECT_CONFIG ?= project-config.jam ;
SEARCH on $(PROJECT_CONFIG) : . ;
ABSOLUTE $(PROJECT_CONFIG) ;
BIND $(PROJECT_CONFIG) ;
if $(PROJECT_CONFIG)
{
ECHO $(PROJECT_CONFIG) ;
}
Prints "/home/user/something/project-config.jam", if it's found.
-- grafik - Don't Assume Anything
-- rrivera_at_[hidden] - grafik_at_[hidden]
-- 102708583_at_icq - Grafik666_at_AIM - Grafik_at_[hidden]
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