I noticed that Module::CoreList does this ... do any other distros do this?

Yes. In the early days of Module::Build, I provided a parallel but unconnected Build.PL, just to get a feel for Ken's shiny new module and how it worked. I kept them separate because I wanted people to be able to install my module even if Module::Build was broken (and it was often broken in those very early days).

Naturally, I was appalled by the horrific camel-like code duplication in two places, Makefile.PL and Build.PL, but was willing to endure this as a convenience to my users. :-)

Much to my surprise, the simple act of adding a new (and unrelated) Build.PL caused my module to fail ActiveState's automated build process because, at that time, if a distribution contained both a Makefile.PL and a Build.PL, the ActiveState auto-builder chose the Build.PL (and the current Module::Build at that time failed its Windows tests). That has since been changed, ActiveState's auto-builder now chooses Makefile.PL if both exist.

Oh, and after adding the new and unrelated Build.PL, I had to change:

WriteMakefile( NAME => 'Acme::EyeDrops', VERSION => '1.45', );
to:
WriteMakefile( NAME => 'Acme::EyeDrops', VERSION => '1.45', PL_FILES => {} );
in Makefile.PL to stop it trying to invoke Build.PL.


In reply to Re: Makefile.PL and Build.PL by eyepopslikeamosquito
in thread Makefile.PL and Build.PL by dragonchild

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.