Boost logo

Boost-Build :

From: David Abrahams (dave_at_[hidden])
Date: 2004-12-14 11:43:14

In the project I posted recently, I needed some project-specific build
rules. Or at least, I'm not ready to declare the rules general enough
to use anywhere else yet. So I needed to make a module in the same
directory as my project root. This is what I came up with:

import modules ;

# find out where we are
.my-dir = [ modules.binding $(__name__) ] ;

# Add that location to the BOOST_BUILD_PATH
modules.poke : BOOST_BUILD_PATH
: $(.my-dir:D)
[ modules.peek : BOOST_BUILD_PATH ] ;

Is that really the best we can do? Seems like an awful mess to me, and
ordinary users are unlikely to come up with anything like it. Thoughts?

Dave Abrahams
Boost Consulting

Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at