Methods to Produce the Makefile

ExtUtils::MM_Unix has some additional methods that are called in sequence to produce a Makefile. The list of methods is specified in the array @ExtUtils::MakeMaker::MM_Sections, one method per section. The routines are all called the same way and so are just listed here. Each method returns the string to be put into its section of the Makefile.

The methods are called in the order that they are listed in the following table, reading down the columns:

post_initialize

top_targets

realclean

const_config

linkext

dist_basics

constants

dlsyms

dist_core

const_loadlibs

dynamic

dist_dir

const_cccmd

dynamic_bs

dist_test

tool_autosplit

dynamic_lib

dist_ci

tool_xsubpp

static

install

tools_other

static_lib

force

dist

installpm

perldepend

macro

installpm_x

makefile

depend

manifypods

staticmake

post_constants

processPL

test

pasthru

installbin

test_via_harness

c_o

subdirs

test_via_script

xs_c

subdir_x

postamble

xs_o

clean

 

Finally, there are two special methods: post_initialize and postamble. They each return an empty string by default and can be defined in Makefile.PL to insert customized text near the beginning or end of the Makefile.

Get Perl in a Nutshell, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.