X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=ext%2FSDBM_File%2FMakefile.PL;h=05e08b5cbc954cf21c71bf98baa4bc54409b5a1b;hb=51077201bf64ca460983010aa8b90b2241c04094;hp=afce3f1a542d20cf8f3d28cdc6ae4f25eb1e0290;hpb=773ae483b9833dec8b7ccd7abbf3ce6ed04d3d69;p=p5sagit%2Fp5-mst-13.2.git diff --git a/ext/SDBM_File/Makefile.PL b/ext/SDBM_File/Makefile.PL index afce3f1..05e08b5 100644 --- a/ext/SDBM_File/Makefile.PL +++ b/ext/SDBM_File/Makefile.PL @@ -1,4 +1,5 @@ use ExtUtils::MakeMaker; +use Config; # The existence of the ./sdbm/Makefile.PL file causes MakeMaker # to automatically include Makefile code for the targets @@ -20,13 +21,34 @@ WriteMakefile( ); sub MY::postamble { - if ($^O ne 'VMS') { + if ($^O =~ /MSWin32/ && Win32::IsWin95()) { + if ($Config{'make'} =~ /dmake/i) { + # dmake-specific + return <<'EOT'; +$(MYEXTLIB): sdbm/Makefile +@[ + cd sdbm + $(MAKE) all + cd .. +] +EOT + } elsif ($Config{'make'} =~ /nmake/i) { + # + return <<'EOT'; +$(MYEXTLIB): sdbm/Makefile + cd sdbm + $(MAKE) all + cd .. +EOT + } +} elsif ($^O ne 'VMS') { ' $(MYEXTLIB): sdbm/Makefile cd sdbm && $(MAKE) all '; - } else { - ' + } + else { + ' $(MYEXTLIB) : [.sdbm]descrip.mms set def [.sdbm] $(MMS) all