1 |
use 5.008004; |
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 => {}, # e.g., Module::Name => 1.1 |
9 |
($] >= 5.005 ? ## Add these new keywords supported since 5.005 |
10 |
(ABSTRACT_FROM => 'jsFind.pm', # retrieve abstract from module |
11 |
AUTHOR => 'Dobrica Pavlinusic <dpavlin@rot13.org>') : ()), |
12 |
); |
13 |
|
14 |
# new target to create png files from GraphViz's dot files created by test |
15 |
|
16 |
sub MY::postamble { |
17 |
return <<'MAKE_MORE'; |
18 |
#png: tree.png words.png |
19 |
png: tree.png |
20 |
|
21 |
tree.png: tree.dot |
22 |
dot -Tpng -o tree.png tree.dot |
23 |
|
24 |
#words.png: words.dot |
25 |
# dot -Tpng -o words.png words.dot |
26 |
|
27 |
html: jsFind.pm |
28 |
pod2html jsFind.pm > jsFind.html && rm pod2htm?.tmp |
29 |
|
30 |
MAKE_MORE |
31 |
} |