diff --git a/tools/module-deps/module-graph.pl b/tools/module-deps/module-graph.pl index 67a40f127c7f..5c4eaad66223 100755 --- a/tools/module-deps/module-graph.pl +++ b/tools/module-deps/module-graph.pl @@ -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";