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


in reply to Re: Why do you need makefile in perl?
in thread Why do you need makefile in perl?

Thanks for the Reply. Now i got an idea, But can you please tell me waht does each command do ? perl makefile.pl make make test make install

  • Comment on Re^2: Why do you need makefile in perl?

Replies are listed 'Best First'.
Re^3: Why do you need makefile in perl?
by Anonymous Monk on Dec 18, 2013 at 07:46 UTC
Re^3: Why do you need makefile in perl?
by pemungkah (Priest) on Dec 18, 2013 at 20:05 UTC
    perl Makefile.PL sets up the necessary build directories and creates a Makefile.

    make builds the module by copying the contents of <t>lib/ into blib ("build library"); if there are any XS modules, these get compiled at this point.

    make test runs all the tests vs. the code now in blib to verify that it passes its tests.

    make install copies the code in blib to the local Perl module directory as defined in the Perl install.

    make disttest verifies that we have all the files we expect, we don't have any files we don't expect, and that they are all in the right relative locations when we ready the code for distribution; it also rechecks that the ready-for-distribution code still passes its tests.

    make dist creates a tar ball of the source we want to distribute.