9 $perl = "$here\\$perl";
12 $make .= " ".shift while $ARGV[0]=~/^-/;
16 chdir($dir) || die "Cannot cd to $dir\n";
17 (my $ext = getcwd()) =~ s,/,\\,g;
18 FindExt::scan_ext($ext);
20 my @ext = FindExt::extensions();
22 foreach my $dir (sort @ext)
24 if (chdir("$ext\\$dir"))
26 my $mmod = -M 'Makefile';
27 if (!(-f 'Makefile') || $mmod > $dmod)
29 print "\nRunning Makefile.PL in $dir\n";
30 my $code = system($perl,"-I$here\\..\lib",'Makefile.PL','INSTALLDIRS=perl');
31 warn "$code from $dir's Makefile.PL" if $code;
32 $mmod = -M 'Makefile';
35 warn "Makefile $mmod > $dmod ($dep)\n";
38 print "\nMaking $dir\n";
40 chdir($here) || die "Cannot cd to $here:$!";
44 warn "Cannot cd to $ext\\$dir:$!";