The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
use ExtUtils::MakeMaker;
# See lib/ExtUtils/MakeMaker.pm for details of how to influence
# the contents of the Makefile that is written.
WriteMakefile(
    'NAME'		=> 'HTML::YaTmpl',
    'VERSION_FROM'	=> 'lib/HTML/YaTmpl.pm', # finds $VERSION
    'PREREQ_PM'		=> {'Class::Member'=>1.3}, # e.g., Module::Name => 1.1
    'PMLIBDIRS'		=> ['lib'],
    'dist'              => {
			    PREOP => './mk_README.sh',
			   },
    ($] >= 5.005 ?    ## Add these new keywords supported since 5.005
      (ABSTRACT_FROM => 'lib/HTML/YaTmpl.pod', # retrieve abstract from module
       AUTHOR     => 'Torsten Förtsch <Torsten.Foertsch@gmx.net>') : ()),
);

sub MY::postamble {
  return <<'EOF';
README: lib/HTML/YaTmpl.pod mk_README.sh
	./mk_README.sh
EOF
}