Re: [Module-build-general] Question about Defaults ...
Status: Beta
Brought to you by:
kwilliams
|
From: Dave R. <au...@ur...> - 2003-03-15 20:09:53
|
On Sat, 15 Mar 2003, Randy W. Sims wrote:
> This brings to mind a problem I've run into: What about CPAN authors who
> want to provide both Makefile.PL and Build.PL during the transition for
> backwards compatibility? When I try this Makefile.PL wants execute
> Build.PL as a self-extracting script. Maybe this has come up before, but
> I couldn't find any references.
>
> Two options that immediately come to mind are:
>
> * Require that the PL_FILES option be specified in the Makefile.PL even
> if it is an empty array so that MM doesn't perform its auto search for
> PL files.
>
> * Add something like the following to the top Build.PL:
> BEGIN { # Don't let it MakeMaker extract me && substitute my variables.
> exit if @ARGV == 1 && $ARGV[0] eq 'Build';
> }
>
> What is the best way to handle this scenario? I'm currently using the
> second. Although its a hack, it feels like a better solution than
> requiring authors to change their existing Makefile.PL to explicitly
> mention every PL file.
Have you looked at the docs for Module::Build::Compat? It has an example
Makefile.PL that simply passes through everything to Build.PL, and it even
can install Module::Build for you if it's not already installed. I've
used it with at least one module on CPAN, Thesaurus, and it works quite
well.
-dave
/*=======================
House Absolute Consulting
www.houseabsolute.com
=======================*/
|