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 |
depend => { |
19 |
dist => 'changelog', |
20 |
}, |
21 |
); |
22 |
|
23 |
# new target to create png files from GraphViz's dot files created by test |
24 |
|
25 |
sub MY::postamble { |
26 |
return <<'MAKE_MORE'; |
27 |
#png: tree.png words.png |
28 |
png: tree.png |
29 |
|
30 |
tree.png: tree.dot |
31 |
dot -Tpng -o tree.png tree.dot |
32 |
|
33 |
#words.png: words.dot |
34 |
# dot -Tpng -o words.png words.dot |
35 |
|
36 |
html: jsFind.pm all |
37 |
pod2html --infile jsFind.pm --outfile jsFind.html && rm -f pod2htm?.tmp |
38 |
|
39 |
clean :: |
40 |
rm -f tree.* words.* homer_* |
41 |
cd html && rm -Rf entities/ entities-utf8/ lorem/ words/ homer/ test_data.js |
42 |
|
43 |
changelog: |
44 |
svn update && svn -v log > Changes |
45 |
|
46 |
MAKE_MORE |
47 |
} |