Skip to content

Commit 0d96e6a

Browse files
committed
.PHONY is specific to Unix make utilities.
And in MMS or MMK on VMS it's a syntax error. So only spell it with a dot when not using those utilities to run Devel::PPPort's Makefile.PL.
1 parent c150e7c commit 0d96e6a

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

Porting/Maintainers.pl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,7 @@ package Maintainers;
344344
'EXCLUDED' => [
345345
'PPPort.pm', # we use PPPort_pm.PL instead
346346
],
347+
'CUSTOMIZED' => [ qw(Makefile.PL) ],
347348
},
348349

349350
'Devel::SelfStubber' => {

dist/Devel-PPPort/Makefile.PL

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,11 +149,13 @@ sub configure
149149
sub MY::postamble
150150
{
151151
package MY;
152+
use Config;
152153
my $post = shift->SUPER::postamble(@_);
154+
# .PHONY is a syntax error in MMK/MMS
155+
my $phony = ($Config{make} =~ m/MM(K|S)/) ? 'PHONY' : '.PHONY';
156+
$post .= "\n\n${phony}: purge_all regen_pm regen_xs regen_tests regen_h regen_release_date\n\n";
153157
$post .= <<'POSTAMBLE';
154158
155-
.PHONY: purge_all regen_pm regen_xs regen_tests regen_h regen_release_date
156-
157159
purge_all: realclean
158160
@$(RM_F) PPPort.pm t/*.t
159161

t/porting/customized.dat

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
# cd t
33
# ./perl -I../lib porting/customized.t --regen
44
Config::Perl::V cpan/Config-Perl-V/V.pm 0a0f7207e6505b78ee345a933acb0246a13579f5
5+
Devel::PPPort dist/Devel-PPPort/Makefile.PL c939c8d33d11994c06f546869df63d4518ece797
56
Digest cpan/Digest/Digest.pm 43f7f544cb11842b2f55c73e28930da50774e081
67
Digest::MD5 cpan/Digest-MD5/Makefile.PL 3bf781444ee671da63f1c6360e0a31f11d9ba520
78
Digest::MD5 cpan/Digest-MD5/MD5.pm df5f0663f0f755be7eda6e3d2f008f2629246b19

0 commit comments

Comments
 (0)