Browse Source

Only emit the summary if top-level 'forward' target was built.

[SVN r59838]
Vladimir Prus 16 years ago
parent
commit
528a576eda
1 changed files with 6 additions and 2 deletions
  1. 6 2
      Jamroot

+ 6 - 2
Jamroot

@@ -567,6 +567,7 @@ class top-level-target : alias-target-class
     
     
     rule generate ( property-set )
     rule generate ( property-set )
     {
     {
+        modules.poke : top-level-targets : $(__name__) ;
         if $(self.build-type) = minimal
         if $(self.build-type) = minimal
         {
         {
             local expanded ;
             local expanded ;
@@ -667,8 +668,10 @@ explicit explain ;
 import build-system ;
 import build-system ;
 rule say ( ok ? ) 
 rule say ( ok ? ) 
 {
 {
-    if $(ok)
-    {
+    if forward in [ modules.peek : top-level-targets ] 
+    {        
+        if $(ok)
+        {
         ECHO 
         ECHO 
 "\n\nThe Boost C++ Libraries were successfully built!
 "\n\nThe Boost C++ Libraries were successfully built!
           
           
@@ -680,6 +683,7 @@ The following directory should be added to linker library paths:
       
       
     $(stage-abs)
     $(stage-abs)
 " ;
 " ;
+        }    
     }    
     }    
 }
 }
 IMPORT $(__name__) : say : : $(__name__).say ;
 IMPORT $(__name__) : say : : $(__name__).say ;

粤ICP备19079148号