Alien-gmake

 view release on metacpan or  search on metacpan

README  view on Meta::CPAN

NAME

    Alien::gmake - Find or build GNU Make

VERSION

    version 0.24

SYNOPSIS

    From your Perl script:

     use Alien::gmake ();
     use Env qw( @PATH );
     
     unshift @ENV, Alien::gmake->bin_dir;
     my $gmake = Alien::gmake->exe;
     system $gmake, 'all';
     system $gmake, 'install';

    Or alienfile:

     use alienfile;
    
     share {
       ...
       requires 'Alien::gmake' => '0.09';
       build [ '%{gmake}', '%{gmake} install' ];
     };

    Or Build.PL with Alien::Build::ModuleBuild:

     use Alien::Base::ModuleBuild;
     Alien::Base::ModuleBuild->new(
       ...
       alien_bin_requires => {
         'Alien::gmake' => '0.09',
       },
       alien_build_commands => {
         "%{gmake}",
       },
       alien_install_commands => {
         "%{gmake} install",
       },
       ...
     )->create_build_script;

DESCRIPTION

    Some packages insist on using GNU Make. Some platforms refuse to come
    with GNU Make. Sometimes you just want to be able to build packages
    that require GNU Make without having to check the version of Make each
    time. This module is for that. It uses the system provided GNU Make if
    it can be found. Otherwise it will download and install it into a
    directory not normally in your path so that it can be used when you use
    Alien::gmake. This way you can use it when you need it, but not muck up
    your environment when you don't.

    If possible, it is better to fix the package so that it doesn't require
    GNU make extensions, making it more portable. Unfortunately, sometimes
    this isn't an option.

    This class is a subclass of Alien::Base, so all of the methods
    documented there should work with this class.

METHODS



( run in 0.838 second using v1.01-cache-2.11-cpan-e1769b4cff6 )