http://www.perlmonks.org?node_id=967336


in reply to Make program used by Perl in windows

There is a dmake-4.12 distribution in CPAN. Could it also be a GNU Make distribution?

No - dmake and GNU Make each have slightly different syntax requirements, and can therefore not be interchanged.

Is it feasible to use GNU Make in Windows?

Possibly, but first ExtUtils::MakeMaker would need to be patched so that it can create a Makefile that the Windows version of GNU Make could understand.
Afaik, for Windows systems, ExtUtils::MakeMaker can currently write only nmake-compliant or dmake-compliant Makefiles.

Cheers,
Rob
  • Comment on Re: Make program used by Perl in windows

Replies are listed 'Best First'.
Re^2: Make program used by Perl in windows
by bojinlund (Monsignor) on Apr 29, 2012 at 08:08 UTC

    No - dmake and GNU Make each have slightly different syntax requirements, and can therefore not be interchanged.

    Not replacing dmake, but using Gnu Make in parallel!

    Must everything (Perl and Perl modules) use the same make program?

    Is it possible to have a Gnu Make and a dmake distribution in CPAN at the same time?

      Is it possible to have a Gnu Make and a dmake distribution in CPAN at the same time?

      Yes, but you shouldn't be writing makefiles, you should do everything possible to avoid writing makefiles.

        Yes, but you shouldn't be writing makefiles, you should do everything possible to avoid writing makefiles.

        I agree!

        However, I believe that a possibility to use the same make program in L/Unix and Windows, at least for Perl modules, would facilitate portability. I am trying to understand if there is a (long term) possibility to use GNU make also in Windows.

        A possible path seem to be:

        • A GNU Make distribution for Windows in CPAN
        • A patched ExtUtils::MakeMaker that can create Makefiles that the Windows version of GNU Make understands