I have created a perl modul with 3 submodules. I want to create a makefile with MakeMaker and have a problem.
My structure of my module is /module.pm and /module/sub.pm.
If i create the makefile only the module.pm file will be included. Which parameter i need to write in the makemaker so the submodules are included too?
Thank you very much.
Don't put your module in the root directory of your distribution. Instead, create a
libsubdirectory and put all the modules under it:The
Makefile.PLshould automatically notice all modules underlib. You shouldn't have to change anything except any paths pointing to modules (e.g.VERSION_FROM).If your module has a prefix, include that under the
libdirectory. If your module is named Some::Other::Module, you'd have: