e598d9de898f3cd3cef9ab5ab05308efa0a11c27
[Biblio-Isis] / Makefile.PL
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 => 'lib/Biblio/Isis.pm', # finds $VERSION
7         AUTHOR => 'Dobrica Pavlinusic (dpavlin@rot13.org)',
8         ABSTRACT_FROM => 'lib/Biblio/Isis.pm',
9         PREREQ_PM => {
10                 'Test::More' => 0,
11                 'Carp' => 0,
12                 'File::Glob' => 0,
13                 'File::Spec' => 0,
14         },
15         depend => {
16                 dist => 'changelog',
17         },
18 );
19
20 sub MY::postamble {
21         return <<'MAKE_MORE';
22
23 HTML_DIR=pod2html
24
25 html: $(TO_INST_PM)
26         test -e $(HTML_DIR) && rm -Rf $(HTML_DIR)
27         mkdir $(HTML_DIR)
28         perl -MPod::Simple::HTMLBatch -e 'Pod::Simple::HTMLBatch::go' lib/ pod2html/
29         test ! -z "`which svn2html.pl`" && svn update && svn2html.pl > $(HTML_DIR)/Changes.html
30
31 changelog:
32         svn update && svn -v log > Changes
33
34 tags:
35         ctags *.p? */*.p?
36
37 cmp:
38         time ./scripts/dump_isis.pl > isis.txt
39         time ./scripts/dump_openisis.pl > openisis.txt
40
41 bench:  all
42         cd ./scripts/ && ./bench.pl
43
44 MAKE_MORE
45 }