This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
[perl #36909] $^R undefined on matches involving backreferences
[perl5.git] / ext / util / make_ext
index fe01f5f..cd1db5a 100644 (file)
@@ -65,6 +65,7 @@ ext*) # Remove ext/ prefix and /pm_to_blib suffix
        pname=`echo "$extspec" | sed -e 's:^ext/::' -e 's:/pm_to_blib$::' ` ;;
 *::*)  # Convert :: to /
        pname=`echo "$extspec" | sed -e 's/::/\//g' ` ;;
+*.o)    pname=`echo "$extspec" | sed -e 's/\.o//'` ;;
 *)     pname="$extspec" ;;
 esac
 # echo "Converted $extspec to $pname"
@@ -121,16 +122,19 @@ esac
 if test ! -f $makefile ; then
        test -f Makefile.PL && ../$depth/miniperl -I../$depth/lib Makefile.PL INSTALLDIRS=perl PERL_CORE=1 $passthru
 fi
+if test ! -f $makefile ; then
+       echo "Warning: No Makefile!"
+fi
 
 case "$target" in
 clean)         ;;
 realclean)     ;;
 *)     # Give makefile an opportunity to rewrite itself.
        # reassure users that life goes on...
-       $MAKE config $passthru || echo "$MAKE config failed, continuing anyway..."
+       $MAKE config MAKE=$MAKE $passthru || echo "$MAKE config failed, continuing anyway..."
        ;;
 esac
 
-$MAKE $makeopts $target $makeargs $passthru || exit
+$MAKE $makeopts $target MAKE=$MAKE $makeargs $passthru || exit
 
 exit $?