A simple guide to ExtUtils::MakeMaker
This is a guide to basic tasks in ExtUtils::MakeMaker. I wrote this because I keep forgetting how to do things.
What to put in Makefile.PL
Make a dependence on another module
use ExtUtils::MakeMaker; WriteMakefile ( PREREQ_PM => { "Some::Module" => 0, }, );
An inconsistency is that for modules required for building, one
uses BUILD_REQUIRES
and for testing one
uses TEST_REQUIRES
but for run-time requirements one
uses PREREQ_PM
.
Add a link to a github repository
my $repo = 'https://github.com/benkasminbullock/Lingua-JA-Moji'; WriteMakefile ( META_MERGE => { resources => { repository => $repo, bugtracker => "$repo/issues", }, }, );
Web links
Copyright © Ben Bullock 2009-2024. All
rights reserved.
For comments, questions, and corrections, please email
Ben Bullock
(benkasminbullock@gmail.com).
/
Privacy /
Disclaimer