# vi:et:sw=4 softtabstop=4
use strict;
use warnings;
use 5.006001;
use ExtUtils::MakeMaker;
WriteMakefile(
NAME => 'Module::Starter',
AUTHOR => 'Andy Lester <andy@petdance.com>',
VERSION_FROM => 'lib/Module/Starter.pm',
ABSTRACT_FROM => 'lib/Module/Starter.pm',
EXE_FILES => [ 'bin/module-starter' ],
PREREQ_PM => {
'Test::More' => 0,
'Test::Pod' => 1.22,
'Test::Pod::Coverage' => 1.08,
'ExtUtils::Command' => 0,
'File::Spec' => 0,
'Getopt::Long' => 0,
'Pod::Usage' => 0,
},
dist => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', },
clean => { FILES => 'Module-Release-*' },
);
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 -verbose "%f: [%p] %m at line %l, near '%r'. (Severity: %s)\n" -q -profile perlcriticrc lib/ bin/ t/
MAKE_FRAG
return $postamble;
}
syntax highlighted by Code2HTML, v. 0.9.1