|
sub MY::top_targets {
my $self = shift ;
my $r = $self ->MM::top_targets( @_ );
if ( my $cf = $ENV {LMNGCONFFILE} ) {
$r =~ s/^(all.*)$/$1 my_target/m;
$cf = quotemeta ( $cf );
$r .= <<"EOT";
my_target:
perl -i -pe 's/^(use constant DEFAULTCONFFILE =>).*\$\$/\$\$1 "$cf";/' blib/lib/Lemonldap/NG/Common/Conf.pm
EOT
}
return $r ;
}
WriteMakefile(
NAME => 'Lemonldap::NG::Common' ,
VERSION_FROM => 'lib/Lemonldap/NG/Common.pm' ,
PREREQ_PM => {
'CGI' => 3.08,
'DBI' => 0,
'Storable' => 0,
'Regexp::Assemble' => 0,
'Cache::Cache' => 0,
'SOAP::Lite' => 0,
},
(
$] >= 5.005
?
(
ABSTRACT_FROM =>
'lib/Lemonldap/NG/Common.pm' ,
AUTHOR => 'guimard <guimard@>'
)
: ()
),
);
|