ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/SCRAM/src/BuildSystem/BuildSetup.pm
(Generate patch)

Comparing COMP/SCRAM/src/BuildSystem/BuildSetup.pm (file contents):
Revision 1.1.2.13 by williamc, Wed Jun 28 09:30:48 2000 UTC vs.
Revision 1.1.2.14 by williamc, Thu Jul 27 11:06:03 2000 UTC

# Line 177 | Line 177 | sub BuildSetup {
177        }
178      }
179      $targetnumber=$#Targets;
180 +    $ENV{"MAKETARGETS"}="";
181      foreach $word ( @Targets ) {
182        if ( $word=~/.*=.*/ ) { # if we have an assignment it cant be a target
183           $targetnumber--;
184        }
185        else {
186 +        # set some variables for use in makefiles
187          $ENV{"MAKETARGET_".$word}=$word;
188 +        if ( $ENV{"MAKETARGETS"} ne "" ) {
189 +          $ENV{"MAKETARGETS"}=$ENV{"MAKETARGETS"}." ".$word;
190 +        }
191 +        else {
192 +          $ENV{"MAKETARGETS"}=$word;
193 +        }
194        }
195      }
196  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines