From: Graham Knop Date: Fri, 30 Oct 2015 19:35:43 +0000 (-0400) Subject: add our custom targets to .PHONY X-Git-Tag: v0.003000~51 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=7efea54c68f9242354bba1a84f5333bc917b134f;p=p5sagit%2FDistar.git add our custom targets to .PHONY --- diff --git a/lib/Distar.pm b/lib/Distar.pm index 6bd4db2..16d951a 100644 --- a/lib/Distar.pm +++ b/lib/Distar.pm @@ -97,6 +97,13 @@ sub write_manifest_skip { $self->SUPER::flush(@_); } + sub special_targets { + my $self = shift; + my $targets = $self->SUPER::special_targets(@_); + $targets =~ s/^(\.PHONY\s*:.*)/$1 preflight releasetest release readmefile distmanicheck nextrelease refresh/m; + $targets; + } + sub dist_test { my $self = shift; my $dist_test = $self->SUPER::dist_test(@_);