Looking through ExtUtils::MM_Unix, the all target is created by the method all_target, so you should be able to add to the all target by writing your own implementation in the MY namespace (in Makefile.PL):
sub MY::all_target { my $self = shift; return <<'MAKE_EXT'; all :: pure_all translations manifypods $(NOECHO) $(NOOP) MAKE_EXT }
Alternatively, you can actually use inheritance and then munge the result from the overloaded method:
sub MY::all_target { my $self = shift; my $orig_all = $self->SUPER::all_target(); $orig_all =~ s/\bpure_all\b/pure_all translations/; return $orig_all }
In reply to Re: ExtUtils::MakeMaker, Makefile.PL: modify existing targets like "all" (as in make all) or "install"
by Corion
in thread ExtUtils::MakeMaker, Makefile.PL: modify existing targets like "all" (as in make all) or "install"
by bliako
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |