Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r70621 - trunk/tools/build/v2/engine
From: ghost_at_[hidden]
Date: 2011-03-27 06:53:29


Author: vladimir_prus
Date: 2011-03-27 06:53:29 EDT (Sun, 27 Mar 2011)
New Revision: 70621
URL: http://svn.boost.org/trac/boost/changeset/70621

Log:
Build (but don't install yet), binary named 'b2'.

Text files modified:
   trunk/tools/build/v2/engine/build.jam | 31 ++++++++++++++++++++++---------
   1 files changed, 22 insertions(+), 9 deletions(-)

Modified: trunk/tools/build/v2/engine/build.jam
==============================================================================
--- trunk/tools/build/v2/engine/build.jam (original)
+++ trunk/tools/build/v2/engine/build.jam 2011-03-27 06:53:29 EDT (Sun, 27 Mar 2011)
@@ -694,6 +694,20 @@
     COPY/REPLACE $(>) $(<)
 } }
 
+rule .copy
+{
+ DEPENDS all : $(<) ;
+ DEPENDS $(<) : $(>) ;
+ [COPY] $(<) : $(>) ;
+ .clean $(<) ;
+}
+
+# Will be redefined later.
+actions [COPY]
+{
+}
+
+
 rule .move
 {
     DEPENDS $(<) : $(>) ;
@@ -821,16 +835,15 @@
 {
     $(>).exe = [ .exe $(>) : $(jam.source) ] ;
     DEPENDS all : $($(>).exe) ;
-
- if $(debug)
- {
- $(<).exe = $(<:S=$($(>).exe:S)) ;
- LOCATE on $($(<).exe) = $(locate-target) ;
- .link $($(<).exe) : $($(>).exe) ;
- DEPENDS all : $($(<).exe) ;
- }
+
+ # Make a copy under the old name.
+ $(<).exe = $(<:S=$($(>).exe:S)) ;
+ LOCATE on $($(<).exe) = $(locate-target) ;
+ .copy $($(<).exe) : $($(>).exe) ;
+ DEPENDS all : $($(<).exe) ;
 }
-.jam jam : bjam ;
+.jam bjam : b2 ;
+
 
 # Scan sources for header dependencies.
 # WARNING: Yes those are *REAL TABS* below. DO NOT CHANGE,


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