Subject: | Always create a Makefile.PL |
You should create always a Makefile.PL, even if Module::Build is used.
This is for compatibility reasons.
Patch:
diff Simple.old Simple.pm
397a398,417
Show quoted text
> =head2 create_compat_Makefile
>
> This will create a Makefile.PL for compatibility reasons.
>
> =cut
>
> sub create_compat_Makefile{
> my ($self) = @_;
>
> my $fname = File::Spec->catfile( $self->{basedir}, "Makefile.PL" );
> open( my $fh, ">", $fname ) or die "Can't create $fname: $!\n";
>
> print $fh $self->compat_Makefile_guts();
>
> close $fh;
> $self->progress( "Created $fname" );
>
> return "Makefile.PL";
> }
>
433a454,473
Show quoted text> =head2 compat_Makefile_guts
>
> This method is called by create_compat_Makefile and returns text used
to populate
Show quoted text> Makefile.PL;
>
> =cut
>
> sub compat_Makefile_guts{
> my ($self) = @_;
> my $text = <<'MAKEFILEPL';
> #!/usr/bin/perl
>
> use Module::Build::Compat;
>
> Module::Build::Compat->run_build_pl(args => \@ARGV);
> Module::Build::Compat->write_makefile();
> MAKEFILEPL
> return $text;
> }
>