How about using the standard Perl module installation mechanism based on ExtUtils::MakeMaker, or the more convenient EU::MM-based ExtUtils::ModuleMaker? That way it can be installed just like any CPAN module:
perl Makefile.PL && make all test && make install
In fact when installing such a package via CPAN.pm, any dependencies on CPAN modules will be resolved automatically, just like for any other CPAN module.
Or even better, use the up and coming installation mechanism which does not rely on external make tools for much improved sanity: Module::Build. Installation then goes like
perl Build.PL && ./Build && ./Build test && ./Build install
although there's also a EU::MM compatibility mode where you can use the familiar Makefile.PL approach.
Makeshifts last the longest.
|