added ignore_empty_subfields [0.24_1]
[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) || true
27         mkdir $(HTML_DIR)
28         allpod2xhtml.pl lib/ $(HTML_DIR)
29         test ! -z "`which svn2html.pl`" && svn update && svn2html.pl > $(HTML_DIR)/Changes.html
30
31 changelog:
32         svk update && svk -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 cpan:
45         make clean
46         rm -f Biblio-Isis-*.tar.gz
47         perl Makefile.PL
48         make changelog
49         make dist
50         make disttest
51         @echo
52         @echo -n "Upload" Biblio-Isis-*.tar.gz "to CPAN? [y/N]:"
53         @read upload && test "$$upload" == "y" && cpan-upload -verbose Biblio-Isis-*.tar.gz
54 MAKE_MORE
55 }