Apache-EmbeddedPerl-Lite
view release on metacpan or search on metacpan
Makefile.PL view on Meta::CPAN
use ExtUtils::MakeMaker;
use Config;
# See lib/ExtUtils/MakeMaker.pm for details of how to influence
# the contents of the Makefile that is written.
WriteMakefile(
'NAME' => "Apache::EmbeddedPerl::Lite",
'VERSION_FROM' => "Lite.pm", # finds $VERSION
'dist' => {COMPRESS=>'gzip', SUFFIX=>'gz'},
'clean' => { FILES => "*~ tmp*"}
);
sub MY::top_targets {
package MY;
my $inherited = shift->SUPER::top_targets(@_);
$inherited =~ s/(pure_all\s+::.+)/$1 README/;
$inherited;
}
sub MY::post_constants {
my $post_constants = $Config{scriptdirexp} .'/pod2text';
if (-e $post_constants) {
$post_constants = q|
MY_POD2TEXT = |. $post_constants .q|
|;
} else {
$post_constants = q|
MY_POD2TEXT = echo "perl distro missing 'pod2text' to convert " |;
}
}
sub MY::postamble {
package MY;
my $postamble = q|
README : Lite.pm
@$(MY_POD2TEXT) Lite.pm > README
|;
}
( run in 2.368 seconds using v1.01-cache-2.11-cpan-0bb4e1dffa6 )