Login
Now that we have ProhibitUselessNoCritic, we can
[gknop/Perl-Critic.git] / Makefile.PL
CommitLineData
02b7b45d
JRT
1#######################################################################
2# $URL$
3# $Date$
4# $Author$
5# $Revision$
6########################################################################
7
df6dee2b 8use 5.006001;
28b5f630 9
59b05e08
JRT
10use strict;
11use warnings;
34cc6052
ES
12
13use lib 'inc';
14use lib 'lib';
15
59b05e08
JRT
16use ExtUtils::MakeMaker;
17
70f3f307
ES
18use Perl::Critic::BuildUtilities qw<
19 test_wrappers_to_generate
496afbe0 20 get_PL_files
70f3f307 21 dump_unlisted_or_optional_module_versions
7963ad6d 22 emit_tar_warning_if_necessary
70f3f307 23>;
34cc6052 24
d1a97a75 25
7963ad6d
ES
26emit_tar_warning_if_necessary();
27
28
8cdd9cf7
ES
29# An attempt was made by Elliot to get the "resources" META.yml entry going
30# here, but he failed. The version in Build.PL works. See the Makefile.PL
31# in the ack distribution for an example.
32
f372073c
AL
33WriteMakefile(
34 NAME => 'Perl::Critic',
35 AUTHOR => 'Jeffrey Thalhammer <thaljef@cpan.org>',
36 ABSTRACT_FROM => 'lib/Perl/Critic.pm',
bb9f1668 37 VERSION_FROM => 'lib/Perl/Critic.pm',
f372073c 38 EXE_FILES => ['bin/perlcritic'],
496afbe0 39 PL_FILES => get_PL_files(),
f372073c 40 PREREQ_PM => {
5a4b3810
ES
41 'B::Keywords' => 1.05,
42 'Carp' => 0,
43 'Config::Tiny' => 2,
44 'English' => 0,
45 'Exception::Class' => 1.23,
eb6e0777 46 'Exporter' => 0,
5a4b3810
ES
47 'File::Basename' => 0,
48 'File::Find' => 0,
49 'File::Path' => 0,
50 'File::Spec' => 0,
51 'File::Spec::Unix' => 0,
52 'File::Temp' => 0,
53 'Getopt::Long' => 0,
54 'IO::String' => 0,
55 'List::MoreUtils' => 0,
56 'List::Util' => 0,
57 'Module::Pluggable' => 3.1,
5ee81b1b
ES
58 'PPI' => 1.203,
59 'PPI::Document' => 1.203,
60 'PPI::Document::File' => 1.203,
61 'PPI::Node' => 1.203,
62 'PPI::Token::Quote::Single' => 1.203,
63 'PPI::Token::Whitespace' => 1.203,
5a4b3810
ES
64 'Pod::PlainText' => 0,
65 'Pod::Select' => 0,
66 'Pod::Usage' => 0,
67 'Readonly' => 1.03,
68 'Scalar::Util' => 0,
69 'String::Format' => 1.13,
70 'base' => 0,
71 'charnames' => 0,
72 'overload' => 0,
73 'strict' => 0,
74 'version' => 0,
75 'warnings' => 0,
76 'overload' => 0,
77 'strict' => 0,
78 'version' => 0,
79 'warnings' => 0,
fcf00467 80
5a4b3810
ES
81 'lib' => 0,
82 'Test::More' => 0,
f372073c 83 },
6d34b243
ES
84 realclean => {
85 FILES =>
86 join
87 q< >,
d33d2185 88 values %{ get_PL_files() },
6d34b243 89 test_wrappers_to_generate(),
6d34b243 90 },
59b05e08 91);
e2d1c3dd
AL
92
93sub MY::postamble {
c1c3dd88 94 return <<"MAKE_FRAG";
e2d1c3dd
AL
95.PHONY: tags
96
97tags:
c1c3dd88
ES
98\tctags -f tags \\
99\t\t--recurse \\
100\t\t--totals \\
101\t\t\\
102\t\t--exclude=blib/ \\
103\t\t--exclude=t/lib \\
104\t\t--exclude=.svn \\
105\t\t--exclude='*~' \\
106\t\t\\
107\t\t--languages=Perl \\
fdac20fb 108\t\t--langmap=Perl:+.t
e2d1c3dd
AL
109MAKE_FRAG
110}
111
70f3f307
ES
112dump_unlisted_or_optional_module_versions();
113
c28a9e24
JRT
114##############################################################################
115# Local Variables:
116# mode: cperl
117# cperl-indent-level: 4
118# fill-column: 78
119# indent-tabs-mode: nil
120# c-indentation-style: bsd
121# End:
96fed375 122# ex: set ts=8 sts=4 sw=4 tw=78 ft=perl expandtab shiftround :