1 |
use 5.005; |
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 => 'jsFind', |
7 |
VERSION_FROM => 'jsFind.pm', # finds $VERSION |
8 |
PREREQ_PM => { |
9 |
'Carp' => 0, |
10 |
'File::Path' => 0, |
11 |
'HTML::Entities' => 0, |
12 |
'Text::Iconv' => 0, |
13 |
'POSIX' => 0, |
14 |
}, |
15 |
($] >= 5.005 ? ## Add these new keywords supported since 5.005 |
16 |
(ABSTRACT_FROM => 'jsFind.pm', # retrieve abstract from module |
17 |
AUTHOR => 'Dobrica Pavlinusic <dpavlin@rot13.org>') : ()), |
18 |
); |
19 |
|
20 |
# new target to create png files from GraphViz's dot files created by test |
21 |
|
22 |
sub MY::postamble { |
23 |
return <<'MAKE_MORE'; |
24 |
#png: tree.png words.png |
25 |
png: tree.png |
26 |
|
27 |
tree.png: tree.dot |
28 |
dot -Tpng -o tree.png tree.dot |
29 |
|
30 |
#words.png: words.dot |
31 |
# dot -Tpng -o words.png words.dot |
32 |
|
33 |
html: blib/lib/jsFind.pm all |
34 |
pod2html blib/lib/jsFind.pm jsFind.html |
35 |
|
36 |
clean :: |
37 |
rm tree.* words.* |
38 |
cd html && rm -Rf entities entities-utf8/ lorem/ words/ |
39 |
|
40 |
MAKE_MORE |
41 |
} |