1 |
use ExtUtils::MakeMaker; |
2 |
# See lib/ExtUtils/MakeMaker.pm for details of how to influence |
3 |
# the contents of the Makefile that is written. |
4 |
WriteMakefile( |
5 |
NAME => 'Biblio::Isis', |
6 |
VERSION_FROM => 'Isis.pm', # finds $VERSION |
7 |
AUTHOR => 'Dobrica Pavlinusic (dpavlin@rot13.org)', |
8 |
ABSTRACT_FROM => 'Isis.pm', |
9 |
PREREQ_PM => { |
10 |
'Test::Simple' => 0.44, |
11 |
'Carp' => 0, |
12 |
'File::Glob' => 0, |
13 |
}, |
14 |
depend => { |
15 |
dist => 'changelog', |
16 |
}, |
17 |
); |
18 |
|
19 |
sub MY::postamble { |
20 |
return <<'MAKE_MORE'; |
21 |
|
22 |
HTML_DIR=pod2html |
23 |
|
24 |
html: $(TO_INST_PM) |
25 |
test -e $(HTML_DIR) || mkdir $(HTML_DIR) |
26 |
ls $(MAN1PODS) $(MAN3PODS) | cut -d. -f1 | xargs -i sh -c "pod2html --infile {}.p[lm] --outfile $(HTML_DIR)/{}.html --htmldir $(HTML_DIR)" |
27 |
rm -f pod2htm?.tmp |
28 |
test ! -z "`which svn2html.pl`" && svn update && svn2html.pl > $(HTML_DIR)/Changes.html |
29 |
|
30 |
changelog: |
31 |
svn update && svn -v log > Changes |
32 |
|
33 |
tags: |
34 |
ctags *.p? */*.p? |
35 |
|
36 |
cmp: |
37 |
time ./scripts/dump_isis.pl > isis.txt |
38 |
time ./scripts/dump_openisis.pl > openisis.txt |
39 |
|
40 |
bench: all |
41 |
cd ./scripts/ && ./bench.pl |
42 |
|
43 |
MAKE_MORE |
44 |
} |