X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=ext%2Futil%2Fmake_ext;h=9afbbcccbbe468d239964143859e31329f28c96c;hb=3f872cb9b86492b28abfc3221567ac8cecfb2724;hp=54caf7dfd8d82be68edcb31bdd2c168ce7800d4b;hpb=4318d5a0158916acc059aa8e6af84037cb7296b9;p=p5sagit%2Fp5-mst-13.2.git diff --git a/ext/util/make_ext b/ext/util/make_ext index 54caf7d..9afbbcc 100644 --- a/ext/util/make_ext +++ b/ext/util/make_ext @@ -75,7 +75,7 @@ makefile=Makefile makeargs='' makeopts='' -if test ! -d "ext/$pname"; then +if test ! -d "$src/ext/$pname"; then echo " Skipping $extspec (directory does not exist)" exit 0 # not an error ? fi @@ -83,6 +83,11 @@ fi echo " Making $mname ($target)" +mkdir ext 2>/dev/null +mkdir ext/$pname 2>/dev/null +if test ! -f ext/$pname/Makefile.PL; then + cat $src/ext/$pname/Makefile.PL > ext/$pname/Makefile.PL +fi cd ext/$pname # check link type and do any preliminaries @@ -116,7 +121,7 @@ nonxs) makeargs=""; esac if test ! -f $makefile ; then - test -f Makefile.PL && ../$depth/miniperl -I../$depth/lib Makefile.PL INSTALLDIRS=perl $passthru + test -f Makefile.PL && ../$depth/miniperl -I../$depth/lib -I$src/lib Makefile.PL INSTALLDIRS=perl $passthru fi if test ! -f $makefile ; then if test -f Makefile.SH; then