Changeset 4869

Show
Ignore:
Timestamp:
06/30/09 15:06:53 (4 months ago)
Author:
kumudb
Message:

simplemake.in modified so that all-executable target is added in every subdirectory and the subsequent subdirectories are descended to create any executables.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • mpich2/branches/dev/kumudb/maint/simplemake.in

    r4827 r4869  
    11921192    &TargetInstall; 
    11931193    print FD $makeBlockSep; 
     1194     
     1195    #------------kumud_parallel_fix--------------------------------------- 
     1196    &TargetExecutables; 
    11941197 
    11951198    # This is ugly, but we need to tell the install target when we're at 
     
    41124115    &TargetPostamble( "installcheck" ); 
    41134116} 
     4117 
     4118#--------------Kumud_parallel_fix-------------------------------- 
     4119 
     4120#============================================================================ 
     4121#The target to desend into sub-directories and create all the executables that 
     4122#needs to be created 
     4123#INSTALL_BIN = myexecutable 
     4124sub TargetExecutables { 
     4125 
     4126    print FD "all-executable: all-executable-local$newline"; 
     4127    foreach $dir (@extra_dirs, @subdirs) { 
     4128        if ($dir eq ".") { 
     4129             # the pre-requisite all-executable-local already take care of this case.    
     4130        } 
     4131        elsif ($dir =~ /@([^@]*)@/) { 
     4132            # May be a replaced variable 
     4133            print FD "\t${quietmake}for dir in $dir - ; do \\$newline"; 
     4134            print FD "\t\tif [ \"\$\$dir\" = \"-\" ] ; then break ; fi ; \\$newline"; 
     4135            print FD "\t\tif ( cd \$\$dir && \${MAKE} all-executable ) ; then : ; else exit 1; fi \\$newline"; 
     4136            print FD "\tdone$newline"; 
     4137        } 
     4138        else { 
     4139            print FD "\t${quietmake}(cd $dir && \${MAKE} all-executable )$newline"; 
     4140        } 
     4141    } 
     4142     
     4143 
     4144    
     4145} 
     4146 
     4147 
    41144148#  
    41154149# ===========================================================================