Although Andy says that MakeMaker can't do it, MakeMaker has a built-in
extension mechanism with the MY::* namespace to override parts of
itself.

True enough. I have standard extensions of MY::postamble in all my Makefile.PLs so that I have targets for "tags" and "critic".

sub MY::postamble {
    my $postamble = <<'MAKE_FRAG';
.PHONY: tags critic

tags:
        ctags -f tags --recurse --totals \
                --exclude=blib \
                --exclude=.svn \
                --exclude='*~' \
                --languages=Perl --langmap=Perl:+.t \

critic:
        perlcritic -1 -q -profile perlcriticrc bin/ lib/ t/
MAKE_FRAG

    return $postamble;
}

--
Andy Lester => [EMAIL PROTECTED] => www.petdance.com => AIM:petdance




Reply via email to