Login
RT #79289: False Postive in Perl::Critic::Utils::is_in_void_context()
[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 18use Perl::Critic::BuildUtilities qw<
26dc721f
ES
19 required_module_versions
20 build_required_module_versions
70f3f307 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',
03887e5e 37 AUTHOR => 'Jeffrey Thalhammer <jeff@imaginative-software.com>',
f372073c 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 => {
26dc721f
ES
43 required_module_versions(),
44 build_required_module_versions(),
f372073c 45 },
6d34b243
ES
46 realclean => {
47 FILES =>
48 join
49 q< >,
461e2c28 50 (map { (ref $_ eq 'ARRAY') ? @{$_} : $_ } values %{ get_PL_files() }),
6d34b243 51 test_wrappers_to_generate(),
6d34b243 52 },
59b05e08 53);
e2d1c3dd
AL
54
55sub MY::postamble {
c1c3dd88 56 return <<"MAKE_FRAG";
e2d1c3dd
AL
57.PHONY: tags
58
59tags:
c1c3dd88
ES
60\tctags -f tags \\
61\t\t--recurse \\
62\t\t--totals \\
63\t\t\\
64\t\t--exclude=blib/ \\
65\t\t--exclude=t/lib \\
66\t\t--exclude=.svn \\
67\t\t--exclude='*~' \\
68\t\t\\
69\t\t--languages=Perl \\
fdac20fb 70\t\t--langmap=Perl:+.t
e2d1c3dd
AL
71MAKE_FRAG
72}
73
70f3f307
ES
74dump_unlisted_or_optional_module_versions();
75
c28a9e24
JRT
76##############################################################################
77# Local Variables:
78# mode: cperl
79# cperl-indent-level: 4
80# fill-column: 78
81# indent-tabs-mode: nil
82# c-indentation-style: bsd
83# End:
96fed375 84# ex: set ts=8 sts=4 sw=4 tw=78 ft=perl expandtab shiftround :