From: Graham Knop Date: Mon, 14 Dec 2015 12:46:08 +0000 (-0500) Subject: clean up phony targets X-Git-Tag: v0.003000~48 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=f57289e368824e454a7f6c614a99ef437e5386b6;p=p5sagit%2FDistar.git clean up phony targets --- diff --git a/lib/Distar.pm b/lib/Distar.pm index b46d7ca..6cc4827 100644 --- a/lib/Distar.pm +++ b/lib/Distar.pm @@ -99,7 +99,19 @@ sub write_manifest_skip { sub special_targets { my $self = shift; my $targets = $self->SUPER::special_targets(@_); - $targets =~ s/^(\.PHONY\s*:.*)/$1 preflight releasetest release readmefile distmanicheck nextrelease refresh bump bumpmajor bumpminor/m; + my $phony_targets = join ' ', qw( + preflight + releasetest + release + readmefile + distmanicheck + nextrelease + refresh + bump + bumpmajor + bumpminor + ); + $targets =~ s/^(\.PHONY *:.*)/$1 $phony_targets/m; $targets; }