67e78ff2 |
1 | use 5.006001; |
2 | use ExtUtils::MakeMaker; |
3 | # See lib/ExtUtils/MakeMaker.pm for details of how to influence |
4 | # the contents of the Makefile that is written. |
5 | WriteMakefile( |
6 | NAME => 'HTML::Element::Library', |
7 | VERSION_FROM => 'lib/HTML/Element/Library.pm', # finds $VERSION |
8 | PREREQ_PM => { |
9 | Array::Group => 1.00, |
10 | |
11 | File::Slurp => 9999.06, |
12 | |
13 | HTML::PrettyPrinter => 0.03, |
14 | HTML::Tree => 3.19, |
15 | |
16 | List::Rotation::Cycle => 1.003, |
17 | List::MoreUtils => 0.09, |
18 | |
19 | Params::Validate => 0.80, |
20 | |
21 | Scalar::Listify => 0.02, |
22 | }, |
23 | ($] >= 5.005 ? ## Add these new keywords supported since 5.005 |
24 | (ABSTRACT_FROM => 'lib/HTML/Element/Library.pm', # retrieve abstract from module |
25 | AUTHOR => 'Terrence Brannon <terry@hcoop.net>') : ()), |
26 | ); |
27 | |
28 | sub MY::postamble { q{ |
29 | |
30 | cleandist: FORCE |
31 | make again; make cleanmanifest; make docs; make dist |
32 | |
33 | again: FORCE |
34 | make clean; perl Makefile.PL; make pm_to_blib |
35 | |
36 | cleanmanifest: realclean FORCE |
37 | rm MANIFEST ; perl Makefile.PL; touch MANIFEST; make manifest |
38 | |
39 | %.t: pm_to_blib FORCE |
40 | make; perl -Iblib/lib $@ |
41 | |
42 | docs : README CHANGES |
43 | |
44 | README: lib/HTML/Element/Library.pm |
45 | pod2text lib/HTML/Element/Library.pm > README |
46 | |
47 | CHANGES: lib/HTML/Element/Library/Changes.pod |
48 | pod2text lib/HTML/Element/Library/Changes.pod > CHANGES |
49 | |
50 | }; } |