ehdonhon has asked for the wisdom of the Perl Monks concerning the following question:
I have a sandbox with a directory structure set up like this (names have been changed to protect the guilty):
MyModule.pm Makefile.PL bin/myscript.pl template/mytemplate1 template/mytemplate2
This is what I would like ExtUtils::MakeMaker to do for me:
- Install MyModule into /usr/local/myperllib/
- Install myscript.pl in /usr/local/bin/
- Install template/* into /usr/local/templates
Presently, my Makefile.PL looks like this:
use ExtUtils::MakeMaker; WriteMakefile( 'NAME' => 'MyModule' 'VERSION_FROM' => 'MyModule.pm' 'PREREQ_PM' => {}, 'LIB' => '/usr/local/myperllib', 'INSTALLSCRIPT' => '/usr/local/bin', 'EXE_FILES' => ['bin/myscript.pl'], );
This will build a makefile that achieves requirements #1, and #2. Any thoughts on how to achieve #3??
Thanks.
Back to
Seekers of Perl Wisdom