#!perl use strict; use warnings; use ExtUtils::MakeMaker; WriteMakefile( NAME => 'Perl::Critic::Bangs', AUTHOR => 'Andy Lester ', VERSION_FROM => 'lib/Perl/Critic/Bangs.pm', ABSTRACT => 'Perl::Critic::Bangs - A collection of policies for Perl::Critic', PL_FILES => {}, PREREQ_PM => { 'Perl::Critic' => 1.084, 'Test::More' => 0, }, LICENSE => 'perl', dist => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', }, clean => { FILES => 'Perl-Critic-Bangs-*' }, ); package MY; sub MY::libscan { my $self = shift; my $path = shift; $path = $self->SUPER::libscan($path); # I have a bunch of symlinks in the root. Ignore them. return '' if -l $path; return $path; }; sub MY::postamble { return <<'MAKE_FRAG'; .PHONY: tags critic tags: ctags -f tags --recurse --totals \ --exclude=blib --exclude=t/lib \ --exclude=.svn --exclude='*~' \ --languages=Perl --langmap=Perl:+.t \ lib/ t/ critic: perlcritic -profile perlcriticrc -1 -quiet lib/ t/ Makefile.PL MAKE_FRAG }