in reply to Perl and Makefiles

You are maybe looking for Module::Build?