Login
Fix ControlStructures::ProhibitLabelsWithSpecialBlockNames'
[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 => {
5a4b3810
ES
43 'B::Keywords' => 1.05,
44 'Carp' => 0,
45 'Config::Tiny' => 2,
46 'English' => 0,
47 'Exception::Class' => 1.23,
48 'File::Basename' => 0,
49 'File::Find' => 0,
50 'File::Path' => 0,
51 'File::Spec' => 0,
52 'File::Spec::Unix' => 0,
53 'File::Temp' => 0,
54 'Getopt::Long' => 0,
55 'IO::String' => 0,
56 'List::MoreUtils' => 0,
57 'List::Util' => 0,
58 'Module::Pluggable' => 3.1,
59 'PPI' => 1.201,
60 'PPI::Document' => 1.201,
61 'PPI::Document::File' => 1.201,
62 'PPI::Node' => 1.201,
63 'PPI::Token::Quote::Single' => 1.201,
64 'PPI::Token::Whitespace' => 1.201,
65 'Pod::PlainText' => 0,
66 'Pod::Select' => 0,
67 'Pod::Usage' => 0,
68 'Readonly' => 1.03,
69 'Scalar::Util' => 0,
70 'String::Format' => 1.13,
71 'base' => 0,
72 'charnames' => 0,
73 'overload' => 0,
74 'strict' => 0,
75 'version' => 0,
76 'warnings' => 0,
77 'overload' => 0,
78 'strict' => 0,
79 'version' => 0,
80 'warnings' => 0,
fcf00467 81
5a4b3810
ES
82 'lib' => 0,
83 'Test::More' => 0,
f372073c 84 },
6d34b243
ES
85 realclean => {
86 FILES =>
87 join
88 q< >,
47e04892 89 'lib/Perl/Critic/PolicySummary.pod',
6d34b243 90 test_wrappers_to_generate(),
47e04892
ES
91 't/ControlStructures/ProhibitNegativeExpressionsInUnlessAndUntilConditions.run',
92 't/Variables/RequireLocalizedPunctuationVars.run',
6d34b243 93 },
59b05e08 94);
e2d1c3dd
AL
95
96sub MY::postamble {
c1c3dd88 97 return <<"MAKE_FRAG";
e2d1c3dd
AL
98.PHONY: tags
99
100tags:
c1c3dd88
ES
101\tctags -f tags \\
102\t\t--recurse \\
103\t\t--totals \\
104\t\t\\
105\t\t--exclude=blib/ \\
106\t\t--exclude=t/lib \\
107\t\t--exclude=.svn \\
108\t\t--exclude='*~' \\
109\t\t\\
110\t\t--languages=Perl \\
fdac20fb 111\t\t--langmap=Perl:+.t
e2d1c3dd
AL
112MAKE_FRAG
113}
114
70f3f307
ES
115dump_unlisted_or_optional_module_versions();
116
c28a9e24
JRT
117##############################################################################
118# Local Variables:
119# mode: cperl
120# cperl-indent-level: 4
121# fill-column: 78
122# indent-tabs-mode: nil
123# c-indentation-style: bsd
124# End:
96fed375 125# ex: set ts=8 sts=4 sw=4 tw=78 ft=perl expandtab shiftround :