1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
|
use ExtUtils::MakeMaker;
# See lib/ExtUtils/MakeMaker.pm for details of how to influence
# the contents of the Makefile that is written.
sub MY::postamble {
package MY;
shift->SUPER::postamble . <<'MAKE';
distdir : README
README : Password.pm
@$(PERL) -MPod::Text -e "pod2text('$<');" > $@
MAKE
}
WriteMakefile(
'NAME' => 'Data::Password',
'VERSION_FROM' => 'Password.pm', # finds $VERSION
PREREQ_PM => {
'Test::More' => 0,
'Exporter' => 0,
},
'dist' => {'COMPRESS' => 'gzip --best --force'},
);
|