#!/usr/bin/perl

use ExtUtils::MakeMaker;

WriteMakefile(
	NAME		=> 'Lingua::Spelling::Alternative',
	VERSION_FROM	=> 'Alternative.pm',
	AUTHOR		=> 'Dobrica Pavlinusic <dpavlin@rot13.org>',
	ABSTRACT_FROM	=> 'Alternative.pm',
	PREREQ_PM	=> {
		'Test::Simple' => 0,
	},
	depend => {
		dist => 'changelog',
	},
);

sub MY::postamble {
	return <<'MAKE_MORE';

HTML_DIR=pod2html

html: $(TO_INST_PM)
	test -e $(HTML_DIR) && rm -Rf $(HTML_DIR) || true
	mkdir $(HTML_DIR)
	perl -MPod::Simple::HTMLBatch -e 'Pod::Simple::HTMLBatch::go' *.p[ml] pod2html/
	test ! -z "`which svn2html.pl`" && svn update && svn2html.pl > $(HTML_DIR)/Changes.html

changelog:
	svn update && svn -v log > Changes

tags:
	ctags *.p? */*.p?

MAKE_MORE
}
