Skip to content

Commit

Permalink
all internal PP BaseName.o to dep on pdlperl.h
Browse files Browse the repository at this point in the history
  • Loading branch information
mohawk2 committed Nov 13, 2024
1 parent e99039d commit e387365
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
1 change: 0 additions & 1 deletion Basic/Bad/Makefile.PL
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion Basic/Makefile.PL
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
5 changes: 5 additions & 0 deletions Basic/lib/PDL/Core/Dev.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit e387365

Please sign in to comment.