diff options
author | Craig A. Berry <craigberry@mac.com> | 2020-09-11 14:31:08 -0500 |
---|---|---|
committer | Craig A. Berry <craigberry@mac.com> | 2020-09-11 14:31:08 -0500 |
commit | 0d96e6a3cf0051ce79a5fafd43f6c63d88b080a3 (patch) | |
tree | 542e488550c23e70dfdbaba2039cecdf3642dfee | |
parent | c150e7c040454515c5acfb8416f2acdb2c0a2bb4 (diff) | |
download | perl-0d96e6a3cf0051ce79a5fafd43f6c63d88b080a3.tar.gz |
.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.
-rwxr-xr-x | Porting/Maintainers.pl | 1 | ||||
-rw-r--r-- | dist/Devel-PPPort/Makefile.PL | 6 | ||||
-rw-r--r-- | t/porting/customized.dat | 1 |
3 files changed, 6 insertions, 2 deletions
diff --git a/Porting/Maintainers.pl b/Porting/Maintainers.pl index bfe5ba5651..a7a36fb6c0 100755 --- a/Porting/Maintainers.pl +++ b/Porting/Maintainers.pl @@ -344,6 +344,7 @@ use File::Glob qw(:case); 'EXCLUDED' => [ 'PPPort.pm', # we use PPPort_pm.PL instead ], + 'CUSTOMIZED' => [ qw(Makefile.PL) ], }, 'Devel::SelfStubber' => { diff --git a/dist/Devel-PPPort/Makefile.PL b/dist/Devel-PPPort/Makefile.PL index a74a57dab5..0aa4525a50 100644 --- a/dist/Devel-PPPort/Makefile.PL +++ b/dist/Devel-PPPort/Makefile.PL @@ -149,11 +149,13 @@ sub configure sub MY::postamble { package MY; + use Config; my $post = shift->SUPER::postamble(@_); + # .PHONY is a syntax error in MMK/MMS + my $phony = ($Config{make} =~ m/MM(K|S)/) ? 'PHONY' : '.PHONY'; + $post .= "\n\n${phony}: purge_all regen_pm regen_xs regen_tests regen_h regen_release_date\n\n"; $post .= <<'POSTAMBLE'; -.PHONY: purge_all regen_pm regen_xs regen_tests regen_h regen_release_date - purge_all: realclean @$(RM_F) PPPort.pm t/*.t diff --git a/t/porting/customized.dat b/t/porting/customized.dat index 395dc639e0..2ba3e3c49b 100644 --- a/t/porting/customized.dat +++ b/t/porting/customized.dat @@ -2,6 +2,7 @@ # cd t # ./perl -I../lib porting/customized.t --regen Config::Perl::V cpan/Config-Perl-V/V.pm 0a0f7207e6505b78ee345a933acb0246a13579f5 +Devel::PPPort dist/Devel-PPPort/Makefile.PL c939c8d33d11994c06f546869df63d4518ece797 Digest cpan/Digest/Digest.pm 43f7f544cb11842b2f55c73e28930da50774e081 Digest::MD5 cpan/Digest-MD5/Makefile.PL 3bf781444ee671da63f1c6360e0a31f11d9ba520 Digest::MD5 cpan/Digest-MD5/MD5.pm df5f0663f0f755be7eda6e3d2f008f2629246b19 |