Boost logo

Boost-Commit :

From: ghost_at_[hidden]
Date: 2008-04-01 13:40:40


Author: vladimir_prus
Date: 2008-04-01 13:40:39 EDT (Tue, 01 Apr 2008)
New Revision: 43986
URL: http://svn.boost.org/trac/boost/changeset/43986

Log:
Allow "bjam path/to/file" to work.

Text files modified:
   trunk/tools/build/v2/build/virtual-target.jam | 4 ++++
   1 files changed, 4 insertions(+), 0 deletions(-)

Modified: trunk/tools/build/v2/build/virtual-target.jam
==============================================================================
--- trunk/tools/build/v2/build/virtual-target.jam (original)
+++ trunk/tools/build/v2/build/virtual-target.jam 2008-04-01 13:40:39 EDT (Tue, 01 Apr 2008)
@@ -572,6 +572,10 @@
             # will be <ptest/bin/gcc/debug>test.o and the target we create below
             # will be <e>test.o
             DEPENDS $(target:G=e) : $(target) ;
+ # Allow bjam <path-to-file>/<file> to work. This won't catch all
+ # possible ways to refer to the path (relative/absolute, extra ".",
+ # various "..", but should help in obvious cases.
+ DEPENDS $(target:G=e:R=$(path)) : $(target) ;
         }
         else
         {


Boost-Commit 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