Alien::Build::MM - Alien::Build installer code for ExtUtils::MakeMaker
version 0.07
In your Makefile.PL:
use ExtUtils::MakeMaker; use Alien::Build::MM; my $abmm = Alien::Build::MM->new; WriteMakefile($abmm->mm_args( ABSTRACT => 'Discover or download and install libfoo', DISTNAME => 'ALien-Libfoo', NAME => 'Alien::Libfoo', VERSION_FROM => 'lib/Alien/Libfoo.pm', ... )); sub MY::postamble { $abmm->mm_postamble; }
In your lib/Alien/Libfoo.pm:
package Alien::Libfoo; use base qw( Alien::Base ); 1;
This class allows you to use Alien::Build and Alien::Base with ExtUtils::MakeMaker.
my $abmm = Alien::Build::MM->new;
Create a new instance of Alien::Build::MM.
my $build = $abmm->build;
The Alien::Build instance.
my %args = $abmm->mm_args(%args);
Adjust the arguments passed into WriteMakefile as needed by Alien::Build.
WriteMakefile
Returns the postamble for the Makefile needed for Alien::Build. This adds the following make targets which are normally called when you run make all, but can be run individually if needed for debugging.
Makefile
make
make all
Determines the final install prefix (%{alien.install.prefix}).
%{alien.install.prefix}
Downloads the source from the internet. Does nothing for a system install.
Build from source (if a share install). Gather configuration (for either system or share install).
Alien::Build, Alien::Base, Alien
Graham Ollis <plicease@cpan.org>
This software is copyright (c) 2017 by Graham Ollis.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Alien::Build, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Alien::Build
CPAN shell
perl -MCPAN -e shell install Alien::Build
For more information on module installation, please visit the detailed CPAN module installation guide.