Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

Re^6: Make program used by Perl in windows

by bojinlund (Prior)
on May 01, 2012 at 16:21 UTC ( #968295=note: print w/replies, xml ) Need Help??

in reply to Re^5: Make program used by Perl in windows
in thread Make program used by Perl in windows

Traditionally, Perl uses the same toolchain that it was built with for building its modules.

Is it just a tradition or is it more? Is it possible to use different make programs even for different Perl modules?

I'm not sure why you would want to change that, because that toolchain is proven to work well.

I am thinking of:

  • Difficult to find good documentation on Dmake
  • GNU Make is more known than Dmake. There is a bigger user community.
  • GNU Make has a bigger “maintenance” group, with more frequent releases.
Most likely, changing the make utility involves patching ExtUtils::MakeMaker to properly recognize the new type of make tool and produce the appropriate output.

Yes, I know. And ExtUtils::MakeMaker is also "doomed" by it's maintainer!

  • Comment on Re^6: Make program used by Perl in windows

Replies are listed 'Best First'.
Re^7: Make program used by Perl in windows
by Corion (Patriarch) on May 01, 2012 at 16:28 UTC

    I don't see what current problems there are with dmake and nmake that would be fixed by a move to GNU make - both other utilities work to build Perl and build its modules, and Perl does not use a make tool for anything else. But as you already seem to have a pretty clear picture of the steps to take, feel free to add a submodule to ExtUtils::MakeMaker that outputs GNU make syntax under Windows. The module is only "doomed" in the sense that schwern has a talk on this out. So far, there has come no replacement for ExtUtils::MakeMaker that is much better if better at all for building and installing Perl modules.

Re^7: Make program used by Perl in windows
by Anonymous Monk on May 02, 2012 at 08:00 UTC

    Is it just a tradition or is it more?

    Tradition is more :)

    Targeting yet another variant of make seems like a spectacular waste of time :)

    I wouldn't target gnu make, i'd target its replacement, makepp - Compatible but reliable and improved replacement for make, Or I would target, and you automagically support everything and then some (I know, wishful thinking again )

    Yes, I know. And ExtUtils::MakeMaker is also "doomed" by it's maintainer!

    Seems you've missed the problem behind the punchline, have you actually watched read the slideshow? Or at minimum The Plea? Schwerns point is, make is non-portable external tool, don't patch MakeMaker to work with another make or do something new, just extend Module::Build, switch your distributions to Module::Build

      The thing is that Module::Build has failed in its 10 years of existence to take over from ExtUtils::MakeMaker. In my opinion quite rightfully so, as it is far easier to debug a Makefile using make -n than it is to debug various opaque layers of Module::Build to find out what goes wrong.

      In retrospect, it seems that Module::Build falls in the same category as ORMs - instead of "I don't know SQL, so I want to write database access as if it were Perl" it falls in the pit of "I don't know make so I want to write module installation/compilation as if they were Perl".

      I understand that extending ExtUtils::MakeMaker may be much hairier than extending Module::Build, but when it fails, the Makefile generated by EU:MM is far easier to debug and "fix" (by direct editing) than divining the error cause from the Module::Build modules and inventing a fix for them.

        Me too, I completely understand and I agree :)

        Even though it recently took me a bit to find makemaker overrides dmake MAXLINELENGTH -- after I went through all the trouble of editing dmake config to add a larger limit, makemaker lowballed me, I still prefer makemaker, even though I hate makefiles :)

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://968295]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2022-01-28 18:58 GMT
Find Nodes?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:

    Results (73 votes). Check out past polls.