Commit | Line | Data |
---|---|---|
02b7b45d JRT |
1 | ####################################################################### |
2 | # $URL$ | |
3 | # $Date$ | |
4 | # $Author$ | |
5 | # $Revision$ | |
6 | ######################################################################## | |
7 | ||
df6dee2b | 8 | use 5.006001; |
28b5f630 | 9 | |
59b05e08 JRT |
10 | use strict; |
11 | use warnings; | |
34cc6052 ES |
12 | |
13 | use lib 'inc'; | |
14 | use lib 'lib'; | |
15 | ||
59b05e08 JRT |
16 | use ExtUtils::MakeMaker; |
17 | ||
70f3f307 ES |
18 | use 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 |
26 | emit_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 |
33 | WriteMakefile( |
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< >, | |
47e04892 | 88 | 'lib/Perl/Critic/PolicySummary.pod', |
6d34b243 | 89 | test_wrappers_to_generate(), |
47e04892 ES |
90 | 't/ControlStructures/ProhibitNegativeExpressionsInUnlessAndUntilConditions.run', |
91 | 't/Variables/RequireLocalizedPunctuationVars.run', | |
6d34b243 | 92 | }, |
59b05e08 | 93 | ); |
e2d1c3dd AL |
94 | |
95 | sub MY::postamble { | |
c1c3dd88 | 96 | return <<"MAKE_FRAG"; |
e2d1c3dd AL |
97 | .PHONY: tags |
98 | ||
99 | tags: | |
c1c3dd88 ES |
100 | \tctags -f tags \\ |
101 | \t\t--recurse \\ | |
102 | \t\t--totals \\ | |
103 | \t\t\\ | |
104 | \t\t--exclude=blib/ \\ | |
105 | \t\t--exclude=t/lib \\ | |
106 | \t\t--exclude=.svn \\ | |
107 | \t\t--exclude='*~' \\ | |
108 | \t\t\\ | |
109 | \t\t--languages=Perl \\ | |
fdac20fb | 110 | \t\t--langmap=Perl:+.t |
e2d1c3dd AL |
111 | MAKE_FRAG |
112 | } | |
113 | ||
70f3f307 ES |
114 | dump_unlisted_or_optional_module_versions(); |
115 | ||
c28a9e24 JRT |
116 | ############################################################################## |
117 | # Local Variables: | |
118 | # mode: cperl | |
119 | # cperl-indent-level: 4 | |
120 | # fill-column: 78 | |
121 | # indent-tabs-mode: nil | |
122 | # c-indentation-style: bsd | |
123 | # End: | |
96fed375 | 124 | # ex: set ts=8 sts=4 sw=4 tw=78 ft=perl expandtab shiftround : |