diff --git a/Basic/Bad/Makefile.PL b/Basic/Bad/Makefile.PL index 6b7b64231..6cf767f1c 100644 --- a/Basic/Bad/Makefile.PL +++ b/Basic/Bad/Makefile.PL @@ -6,7 +6,6 @@ use File::Spec::Functions; my @pack = (["bad.pd",qw(Bad PDL::Bad)]); my %hash = pdlpp_stdargs_int(@pack); -$hash{depend} = { 'Bad$(OBJ_EXT)' => catfile(updir, qw(lib PDL Core pdlperl.h)) }; undef &MY::postamble; # suppress warning *MY::postamble = sub { diff --git a/Basic/Makefile.PL b/Basic/Makefile.PL index 77bb0268d..c58fd3cd9 100644 --- a/Basic/Makefile.PL +++ b/Basic/Makefile.PL @@ -21,7 +21,7 @@ EOT my $typespm = catfile(qw(lib PDL Types.pm)); for (qw(pdl.h pdlperl.h)) { my $base = "lib/PDL/Core/$_"; # no catfile as init_PM uses File::Find which normalises to / - $text .= "$base :: $typespm\n\t\$(PERLRUN) $base.PL $base\n"; + $text .= "$base :: $base.PL $typespm\n\t\$(PERLRUN) $base.PL $base\n"; } $text .= "\n" . ::coretarget($self); my $coretest = join ' ', map catfile('t', $_.'.t'), qw( diff --git a/Basic/lib/PDL/Core/Dev.pm b/Basic/lib/PDL/Core/Dev.pm index 46eb17320..ccd829576 100644 --- a/Basic/lib/PDL/Core/Dev.pm +++ b/Basic/lib/PDL/Core/Dev.pm @@ -224,6 +224,11 @@ sub _stdargs { } else { %hash = (%hash, OBJECT => "$pref\$(OBJ_EXT)"); } + if ($internal) { + $hash{depend} = { + "$pref\$(OBJ_EXT)" => File::Spec::Functions::abs2rel(catfile($w, qw(PDL Core pdlperl.h))), + }; + } ( NAME => $mod, VERSION_FROM => ($internal ? catfile(dirname($w), qw(lib PDL Core.pm)) : $src),