in reply to ExtUtils::MakeMaker, Makefile.PL: modify existing targets like "all" (as in make all) or "install"
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 }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: ExtUtils::MakeMaker, Makefile.PL: modify existing targets like "all" (as in make all) or "install"
by bliako (Abbot) on Sep 17, 2025 at 14:38 UTC | |
by Corion (Patriarch) on Sep 17, 2025 at 16:42 UTC | |
by bliako (Abbot) on Sep 18, 2025 at 08:26 UTC | |
by choroba (Cardinal) on Sep 17, 2025 at 16:31 UTC |