Construction Script
DESTDIR & PREFIX
If you're creating a non-CPAN distribution, in order to install in a different location, you may want to set DESTDIR and/or PREFIX. Can also use INSTALLDIRS and/or INSTALLSITELIB if they are more applicable.
use ExtUtils::MakeMaker;
WriteMakefile
(
'NAME' => 'My::Module',
'VERSION_FROM' => 'lib/My/Module.pm',
'PREREQ_PM' => {
'Test::More' => '0',
},
'DESTDIR' => '/home/barbie/myproject/',
'PREFIX' => 'lib',
) ;
- This is only applicable if you plan to use 'make install'