| | 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 |
| | 4124 | sub 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 | |