Boost logo

Boost-Build :

From: David Abrahams (dave_at_[hidden])
Date: 2002-11-11 18:55:41


I don't understand what's going on here, even with the comment:

# Each element should have the form
# type["(" name-pattern ")"]
# for example, obj(%_x). Name of generated target will be found
# by replacing % with the name of source, provided explicit name
# was not specified.

...
for local e in $(target-types-and-names)
{
local m = [ MATCH ([^\\(]*)(\\((.*)%(.*)\\))? : $(e) ] ;
self.target-types += $(m[1]) ;
self.name-pre-post.$(m[1]) = $(m[3]) $(m[4]) ;
}

What if there are multiple sources? Is the purpose of this to allow
make-style rules which do %.o <- %.c ? If so, why doesn't the comment
say "obj(%.o)"?

-- 
David Abrahams
dave_at_[hidden] * http://www.boost-consulting.com
Boost support, enhancements, training, and commercial distribution
 

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