summaryrefslogtreecommitdiff
path: root/dist
diff options
context:
space:
mode:
Diffstat (limited to 'dist')
-rw-r--r--dist/Locale-Maketext/Makefile.PL11
-rw-r--r--dist/Locale-Maketext/lib/Locale/Maketext.pm2
2 files changed, 10 insertions, 3 deletions
diff --git a/dist/Locale-Maketext/Makefile.PL b/dist/Locale-Maketext/Makefile.PL
index 72cc31e6da..212982d9ba 100644
--- a/dist/Locale-Maketext/Makefile.PL
+++ b/dist/Locale-Maketext/Makefile.PL
@@ -28,8 +28,15 @@ WriteMakefile(
);
sub MY::postamble {
- return <<'MAKE_FRAG';
-.PHONY: tags critic
+ # .PHONY is not portable
+ my $self = shift;
+ my $phony_line = $self->can('is_make_type')
+ && ($self->is_make_type('gmake')
+ || $self->is_make_type('bsdmake'))
+ ? '.PHONY: tags critic'
+ : '';
+
+ return "$phony_line\n\n" . <<'MAKE_FRAG';
tags:
ctags -f tags --recurse --totals \
diff --git a/dist/Locale-Maketext/lib/Locale/Maketext.pm b/dist/Locale-Maketext/lib/Locale/Maketext.pm
index 972f929985..8979c202f0 100644
--- a/dist/Locale-Maketext/lib/Locale/Maketext.pm
+++ b/dist/Locale-Maketext/lib/Locale/Maketext.pm
@@ -25,7 +25,7 @@ BEGIN {
}
-our $VERSION = '1.32';
+our $VERSION = '1.33';
our @ISA = ();
our $MATCH_SUPERS = 1;