Boost logo

Boost-Build :

From: Jonathan Biggar (jon_at_[hidden])
Date: 2008-07-22 00:26:08


I want to select a source file based on the value of <target-os>, but it
seems rather unsatisfying to have to write an alias rule for each os I
support.

I've figured out that I can do this:

os-names = [ modules.peek builtin : .os-names ] ;

for local os in $(os-name)
{
     alias target-os-source : foo-$(os).cpp : <target-os>$(os) ;
}

which saves some typing or cut & paste errors, but that's still rather
unsatisfying.

Seems to me there ought to be a better way, but I haven't found one yet.

-- 
Jon Biggar
Floorboard Software
jon_at_[hidden]
jon_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