Check for makefiles before running make to avoid needless errors. sr=alecf

This commit is contained in:
seawood%netscape.com 2001-10-16 23:44:12 +00:00
parent 004836dcaf
commit 00402d8f86

View File

@ -57,8 +57,14 @@ while ($#dirs != -1) {
# pop the curdir
$curdir = pop @dirs;
print STDERR "Entering $curdir.. \r";
print STDERR "Entering $curdir.. \n";
chdir "$curdir" || next;
if ($^O eq "linux") {
next if (! -e "$curdir/Makefile");
} elsif ($^O eq "MSWin32") {
next if (! -e "$curdir/makefile.win");
}
$current_dirs = "";
open(MAKEOUT, "$makecommand echo-dirs echo-module echo-requires|") || die "Can't make: $!\n";