™.. Module::Build::Compat - Online Linux Manual PageSection : 3pm
Updated : 2017-03-22
Source : perl v5.10.1
Note : Perl Programmers Reference Guide

NAMEModule::Build::Compat − Compatibility with ExtUtils::MakeMaker

SYNOPSIS​ # In a Build.PL : ​ use Module::Build; ​ my $build = Module::Build−>new ​ ( module_name => 'Foo::Bar', ​ license => 'perl', ​ create_makefile_pl => 'passthrough' ); ​ ...

DESCRIPTIONBecause \*(C`ExtUtils::MakeMaker\*(C'\fR has been the standard way to distribute modules for a long time, many tools (CPAN.pm, or your system administrator) may expect to find a working Makefile.PL in every distribution they download from CPAN. If you want to throw them a bone, you can use \*(C`Module::Build::Compat\*(C'\fR to automatically generate a ​Makefile.PL for you, in one of several different styles. \*(C`Module::Build::Compat\*(C'\fR also provides some code that helps out the ​Makefile.PL at runtime.

METHODScreate_makefile_pl($style, $build) Creates a Makefile.PL in the current directory in one of several styles, based on the supplied \*(C`Module::Build\*(C'\fR object \f(CW$build\fR. This is typically controlled by passing the desired style as the ​\*(C`create_makefile_pl\*(C'\fR parameter to \f(CW\*(C`Module::Build\*(C'\fR's \f(CW\*(C`new()\*(C'\fR method; the Makefile.PL will then be automatically created during the ​\*(C`distdir\*(C'\fR action. The currently supported styles are: small A small Makefile.PL will be created that passes all functionality through to the Build.PL script in the same directory. The user must already have \*(C`Module::Build\*(C'\fR installed in order to use this, or else they'll get a module-not-found error. passthrough This is just like the \*(C`small\*(C'\fR option above, but if \f(CW\*(C`Module::Build\*(C'\fR is not already installed on the user's system, the script will offer to use \*(C`CPAN.pm\*(C'\fR to download it and install it before continuing with the build. traditional A Makefile.PL will be created in the traditional style, i.e. it will use \*(C`ExtUtils::MakeMaker\*(C'\fR and won't rely on \f(CW\*(C`Module::Build\*(C'\fR at all. In order to create the Makefile.PL, we'll include the \*(C`requires\*(C'\fR and ​\*(C`build_requires\*(C'\fR dependencies as the \f(CW\*(C`PREREQ_PM\*(C'\fR parameter. You don't want to use this style if during the \*(C`perl Build.PL\*(C'\fR stage you ask the user questions, or do some auto-sensing about the user's environment, or if you subclass \*(C`Module::Build\*(C'\fR to do some customization, because the vanilla Makefile.PL won't do any of that. run_build_pl(args => \@ARGV) This method runs the Build.PL script, passing it any arguments the user may have supplied to the \*(C`perl Makefile.PL\*(C'\fR command. Because ​\*(C`ExtUtils::MakeMaker\*(C'\fR and \f(CW\*(C`Module::Build\*(C'\fR accept different arguments, this method also performs some translation between the two. \*(C`run_build_pl()\*(C'\fR accepts the following named parameters: args The \*(C`args\*(C'\fR parameter specifies the parameters that would usually appear on the command line of the \*(C`perl Makefile.PL\*(C'\fR command \- typically you'll just pass a reference to @ARGV. script This is the filename of the script to run − it defaults to \*(C`Build.PL\*(C'\fR. write_makefile() This method writes a 'dummy' Makefile that will pass all commands through to the corresponding \*(C`Module::Build\*(C'\fR actions. \*(C`write_makefile()\*(C'\fR accepts the following named parameters: makefile The name of the file to write − defaults to the string \*(C`Makefile\*(C'\fR.

SCENARIOSSo, some common scenarios are: 1. Just include a Build.PL script (without a Makefile.PL script), and give installation directions in a README or INSTALL document explaining how to install the module. In particular, explain that the user must install \*(C`Module::Build\*(C'\fR before installing your module. Note that if you do this, you may make things easier for yourself, but harder for people with older versions of CPAN or CPANPLUS on their system, because those tools generally only understand the ​Makefile.PL/\*(C`ExtUtils::MakeMaker\*(C'\fR way of doing things. 2. Include a Build.PL script and a traditional Makefile.PL, created either manually or with \*(C`create_makefile_pl()\*(C'\fR. Users won't ever have to install \*(C`Module::Build\*(C'\fR if they use the \fIMakefile.PL\fR, but they won't get to take advantage of \*(C`Module::Build\*(C'\fR's extra features either. For good measure, of course, test both the Makefile.PL and the ​Build.PL before shipping. 3. Include a Build.PL script and a pass-through Makefile.PL built using \*(C`Module::Build::Compat\*(C'\fR. This will mean that people can continue to use the old installation commands, and they may never notice that it's actually doing something else behind the scenes. It will also mean that your installation process is compatible with older versions of tools like CPAN and CPANPLUS.

AUTHORKen Williams <kwilliams@cpan.org>

COPYRIGHTCopyright (c) 2001−2006 Ken Williams. All rights reserved. This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

SEE ALSOModule::Build(3), ExtUtils::MakeMaker(3)
0
Johanes Gumabo
Data Size   :   20,351 byte
man-Module::Build::Compat.3pmBuild   :   2024-12-05, 20:55   :  
Visitor Screen   :   x
Visitor Counter ( page / site )   :   3 / 174,926
Visitor ID   :     :  
Visitor IP   :   3.15.1.23   :  
Visitor Provider   :   AMAZON-02   :  
Provider Position ( lat x lon )   :   39.962500 x -83.006100   :   x
Provider Accuracy Radius ( km )   :   1000   :  
Provider City   :   Columbus   :  
Provider Province   :   Ohio ,   :   ,
Provider Country   :   United States   :  
Provider Continent   :   North America   :  
Visitor Recorder   :   Version   :  
Visitor Recorder   :   Library   :  
Online Linux Manual Page   :   Version   :   Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page   :   Library   :   lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page   :   Library   :   lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base   :   Version   :   Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base   :   Library   :   lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36

Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.

ERROR : Need New Coding :         (parse_manual_page_|249|Module::Build::Compat.3pm|36/37|el══─{─══.|.el══─{─══. ds -- \|\(em\| )         (htmlprn|149|Module::Build::Compat.3pm|36/37|.el══─{─══. ds --  —  |.el══─{─══. ds -- \|\(em\| )         (parse_manual_page_|249|Module::Build::Compat.3pm|41|br══─}─══|'br══─}─══ )         (htmlprn|149|Module::Build::Compat.3pm|41|'br══─}─══ |'br══─}─══ )         (rof_nr_x|149|Module::Build::Compat.3pm|51/52|\nF|.ie \nF ══─{─══. de IX )         (rof_unit_scale_px|41|Module::Build::Compat.3pm|51/52|F|.ie \nF ══─{─══. de IX )         (rof_if|19|Module::Build::Compat.3pm|51/52|\nF|.ie \nF ══─{─══. de IX )         (htmlprn|149|Module::Build::Compat.3pm|51/52|.ie \nF ══─{─══. de IX|.ie \nF ══─{─══. de IX )         (rof_escape_sequence|91|Module::Build::Compat.3pm|53|\$1\t\\n%\t"\\$2" |. tm Index:\\$1\t\\n%\t"\\$2" )         (parse_manual_page_|249|Module::Build::Compat.3pm|57|══─}─══|.══─}─══ )         (htmlprn|149|Module::Build::Compat.3pm|57|.══─}─══ |.══─}─══ )         (rof_escape_sequence|91|Module::Build::Compat.3pm|147|\*(C`ExtUtils::MakeMaker\*(C'\fR has been the standard way to distribute |Because \f(CW\*(C`ExtUtils::MakeMaker\*(C'\fR has been the standard way to distribute )         (rof_escape_sequence|91|Module::Build::Compat.3pm|151|\*(C`Module::Build::Compat\*(C'\fR to automatically generate a |bone, you can use \f(CW\*(C`Module::Build::Compat\*(C'\fR to automatically generate a )         (rof_escape_sequence|91|Module::Build::Compat.3pm|154|\*(C`Module::Build::Compat\*(C'\fR also provides some code that helps out the |\&\f(CW\*(C`Module::Build::Compat\*(C'\fR also provides some code that helps out the )         (rof_escape_sequence|91|Module::Build::Compat.3pm|162|\*(C`Module::Build\*(C'\fR object \f(CW$build\fR. This is |styles, based on the supplied \f(CW\*(C`Module::Build\*(C'\fR object \f(CW$build\fR. This is )         (rof_escape_sequence|91|Module::Build::Compat.3pm|164|\*(C`create_makefile_pl\*(C'\fR parameter to \f(CW\*(C`Module::Build\*(C'\fR's \f(CW\*(C`new()\*(C'\fR method; |\&\f(CW\*(C`create_makefile_pl\*(C'\fR parameter to \f(CW\*(C`Module::Build\*(C'\fR's \f(CW\*(C`new()\*(C'\fR method; )         (rof_escape_sequence|91|Module::Build::Compat.3pm|166|\*(C`distdir\*(C'\fR action. |\&\f(CW\*(C`distdir\*(C'\fR action. )         (rof_escape_sequence|91|Module::Build::Compat.3pm|174|\*(C`Module::Build\*(C'\fR installed in order to use this, or else |already have \f(CW\*(C`Module::Build\*(C'\fR installed in order to use this, or else )         (rof_escape_sequence|91|Module::Build::Compat.3pm|178|\*(C`small\*(C'\fR option above, but if \f(CW\*(C`Module::Build\*(C'\fR is |This is just like the \f(CW\*(C`small\*(C'\fR option above, but if \f(CW\*(C`Module::Build\*(C'\fR is )         (rof_escape_sequence|91|Module::Build::Compat.3pm|180|\*(C`CPAN.pm\*(C'\fR to download it and install it before continuing with |use \f(CW\*(C`CPAN.pm\*(C'\fR to download it and install it before continuing with )         (rof_escape_sequence|91|Module::Build::Compat.3pm|185|\*(C`ExtUtils::MakeMaker\*(C'\fR and won't rely on \f(CW\*(C`Module::Build\*(C'\fR at all. |use \f(CW\*(C`ExtUtils::MakeMaker\*(C'\fR and won't rely on \f(CW\*(C`Module::Build\*(C'\fR at all. )         (rof_escape_sequence|91|Module::Build::Compat.3pm|186|\*(C`requires\*(C'\fR and |In order to create the \fIMakefile.PL\fR, we'll include the \f(CW\*(C`requires\*(C'\fR and )         (rof_escape_sequence|91|Module::Build::Compat.3pm|187|\*(C`build_requires\*(C'\fR dependencies as the \f(CW\*(C`PREREQ_PM\*(C'\fR parameter. |\&\f(CW\*(C`build_requires\*(C'\fR dependencies as the \f(CW\*(C`PREREQ_PM\*(C'\fR parameter. )         (rof_escape_sequence|91|Module::Build::Compat.3pm|189|\*(C`perl Build.PL\*(C'\fR stage |You don't want to use this style if during the \f(CW\*(C`perl Build.PL\*(C'\fR stage )         (rof_escape_sequence|91|Module::Build::Compat.3pm|191|\*(C`Module::Build\*(C'\fR to do some |environment, or if you subclass \f(CW\*(C`Module::Build\*(C'\fR to do some )         (rof_escape_sequence|91|Module::Build::Compat.3pm|199|\*(C`perl Makefile.PL\*(C'\fR command. Because |user may have supplied to the \f(CW\*(C`perl Makefile.PL\*(C'\fR command. Because )         (rof_escape_sequence|91|Module::Build::Compat.3pm|200|\*(C`ExtUtils::MakeMaker\*(C'\fR and \f(CW\*(C`Module::Build\*(C'\fR accept different arguments, this |\&\f(CW\*(C`ExtUtils::MakeMaker\*(C'\fR and \f(CW\*(C`Module::Build\*(C'\fR accept different arguments, this )         (rof_escape_sequence|91|Module::Build::Compat.3pm|203|\*(C`run_build_pl()\*(C'\fR accepts the following named parameters: |\&\f(CW\*(C`run_build_pl()\*(C'\fR accepts the following named parameters: )         (rof_escape_sequence|91|Module::Build::Compat.3pm|207|\*(C`args\*(C'\fR parameter specifies the parameters that would usually |The \f(CW\*(C`args\*(C'\fR parameter specifies the parameters that would usually )         (rof_escape_sequence|91|Module::Build::Compat.3pm|208|\*(C`perl Makefile.PL\*(C'\fR command \- |appear on the command line of the \f(CW\*(C`perl Makefile.PL\*(C'\fR command \- )         (rof_escape_sequence|91|Module::Build::Compat.3pm|212|\*(C`Build.PL\*(C'\fR. |This is the filename of the script to run \- it defaults to \f(CW\*(C`Build.PL\*(C'\fR. )         (rof_escape_sequence|91|Module::Build::Compat.3pm|219|\*(C`Module::Build\*(C'\fR actions. |through to the corresponding \f(CW\*(C`Module::Build\*(C'\fR actions. )         (rof_escape_sequence|91|Module::Build::Compat.3pm|221|\*(C`write_makefile()\*(C'\fR accepts the following named parameters: |\&\f(CW\*(C`write_makefile()\*(C'\fR accepts the following named parameters: )         (rof_escape_sequence|91|Module::Build::Compat.3pm|225|\*(C`Makefile\*(C'\fR. |The name of the file to write \- defaults to the string \f(CW\*(C`Makefile\*(C'\fR. )         (rof_escape_sequence|91|Module::Build::Compat.3pm|236|\*(C`Module::Build\*(C'\fR before installing your |that the user must install \f(CW\*(C`Module::Build\*(C'\fR before installing your )         (rof_escape_sequence|91|Module::Build::Compat.3pm|242|\*(C`ExtUtils::MakeMaker\*(C'\fR way of doing things. |\&\fIMakefile.PL\fR/\f(CW\*(C`ExtUtils::MakeMaker\*(C'\fR way of doing things. )         (rof_escape_sequence|91|Module::Build::Compat.3pm|245|\*(C`create_makefile_pl()\*(C'\fR. Users won't |created either manually or with \f(CW\*(C`create_makefile_pl()\*(C'\fR. Users won't )         (rof_escape_sequence|91|Module::Build::Compat.3pm|246|\*(C`Module::Build\*(C'\fR if they use the \fIMakefile.PL\fR, but |ever have to install \f(CW\*(C`Module::Build\*(C'\fR if they use the \fIMakefile.PL\fR, but )         (rof_escape_sequence|91|Module::Build::Compat.3pm|247|\*(C`Module::Build\*(C'\fR's extra features |they won't get to take advantage of \f(CW\*(C`Module::Build\*(C'\fR's extra features )         (rof_escape_sequence|91|Module::Build::Compat.3pm|254|\*(C`Module::Build::Compat\*(C'\fR. This will mean that people can |built using \f(CW\*(C`Module::Build::Compat\*(C'\fR. This will mean that people can )