Login
Change ProhibitMagicNumbers to allow constant subroutines.
[gknop/Perl-Critic.git] / Makefile.PL
CommitLineData
02b7b45d
JRT
1#######################################################################
2# $URL$
3# $Date$
4# $Author$
5# $Revision$
6########################################################################
7
9f0edba9
ES
8BEGIN {
9 require 5.006001;
10}
11
59b05e08
JRT
12use strict;
13use warnings;
34cc6052
ES
14
15use lib 'inc';
16use lib 'lib';
17
59b05e08
JRT
18use ExtUtils::MakeMaker;
19
70f3f307
ES
20use Perl::Critic::BuildUtilities qw<
21 test_wrappers_to_generate
496afbe0 22 get_PL_files
70f3f307 23 dump_unlisted_or_optional_module_versions
7963ad6d 24 emit_tar_warning_if_necessary
70f3f307 25>;
34cc6052 26
d1a97a75 27
7963ad6d
ES
28emit_tar_warning_if_necessary();
29
30
8cdd9cf7
ES
31# An attempt was made by Elliot to get the "resources" META.yml entry going
32# here, but he failed. The version in Build.PL works. See the Makefile.PL
33# in the ack distribution for an example.
34
f372073c
AL
35WriteMakefile(
36 NAME => 'Perl::Critic',
37 AUTHOR => 'Jeffrey Thalhammer <thaljef@cpan.org>',
38 ABSTRACT_FROM => 'lib/Perl/Critic.pm',
bb9f1668 39 VERSION_FROM => 'lib/Perl/Critic.pm',
f372073c 40 EXE_FILES => ['bin/perlcritic'],
496afbe0 41 PL_FILES => get_PL_files(),
f372073c 42 PREREQ_PM => {
e2d4c0f0 43 'B::Keywords' => 1.05,
f372073c 44 'Config::Tiny' => 2,
3fff51e5 45 'Exception::Class' => 1.23,
f372073c
AL
46 'File::Spec' => 0,
47 'File::Spec::Unix' => 0,
48 'IO::String' => 0,
49 'List::MoreUtils' => 0,
50 'List::Util' => 0,
a7340650 51 'Module::Pluggable' => 3.1,
e087d6fb 52 'PPI' => 1.201,
f372073c
AL
53 'Pod::PlainText' => 0,
54 'Pod::Usage' => 0,
c680a9c9 55 'Readonly' => 1.03,
f372073c 56 'Scalar::Util' => 0,
f372073c 57 'String::Format' => 1.13,
fcf00467
ES
58 'version' => 0,
59
f372073c
AL
60 'Test::More' => 0,
61 },
6d34b243
ES
62 realclean => {
63 FILES =>
64 join
65 q< >,
47e04892 66 'lib/Perl/Critic/PolicySummary.pod',
6d34b243 67 test_wrappers_to_generate(),
47e04892
ES
68 't/ControlStructures/ProhibitNegativeExpressionsInUnlessAndUntilConditions.run',
69 't/Variables/RequireLocalizedPunctuationVars.run',
6d34b243 70 },
59b05e08 71);
e2d1c3dd
AL
72
73sub MY::postamble {
c1c3dd88 74 return <<"MAKE_FRAG";
e2d1c3dd
AL
75.PHONY: tags
76
77tags:
c1c3dd88
ES
78\tctags -f tags \\
79\t\t--recurse \\
80\t\t--totals \\
81\t\t\\
82\t\t--exclude=blib/ \\
83\t\t--exclude=t/lib \\
84\t\t--exclude=.svn \\
85\t\t--exclude='*~' \\
86\t\t\\
87\t\t--languages=Perl \\
fdac20fb 88\t\t--langmap=Perl:+.t
e2d1c3dd
AL
89MAKE_FRAG
90}
91
70f3f307
ES
92dump_unlisted_or_optional_module_versions();
93
c28a9e24
JRT
94##############################################################################
95# Local Variables:
96# mode: cperl
97# cperl-indent-level: 4
98# fill-column: 78
99# indent-tabs-mode: nil
100# c-indentation-style: bsd
101# End:
96fed375 102# ex: set ts=8 sts=4 sw=4 tw=78 ft=perl expandtab shiftround :