Line # Revision Author
1 1 dpavlin 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 => 'SWISH::Split',
7 VERSION_FROM => 'Split.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 => 'Split.pm', # retrieve abstract from module
11 AUTHOR => 'Dobrica Pavlinusic <dpavlin@rot13.org>') : ()),
12 6 dpavlin depend => {
13 dist => 'changelog',
14 },
15 1 dpavlin );
16 6 dpavlin
17 sub MY::postamble {
18 return <<'MAKE_MORE';
19
20 HTML_DIR=pod2html
21
22 html: $(TO_INST_PM)
23 test -e $(HTML_DIR) || mkdir $(HTML_DIR)
24 ls $(MAN1PODS) $(MAN3PODS) | cut -d. -f1 | xargs -i sh -c "pod2html --infile {}.p[lm] --outfile $(HTML_DIR)/{}.html --htmldir $(HTML_DIR)"
25 rm -f pod2htm?.tmp
26 test ! -z "`which svn2html.pl`" && svn update && svn2html.pl > $(HTML_DIR)/Changes.html
27
28 changelog:
29 svn update && svn -v log > Changes
30
31 7 dpavlin tags:
32 ctags *.p?
33
34 6 dpavlin MAKE_MORE
35 }