http://qs321.pair.com?node_id=292217


in reply to Re: Re: non-CPAN module distributions
in thread non-CPAN module distributions

Really? I've been having trouble with that. Any help you can provide would be appreciated.

What do I set NAME to? If I set NAME to 'MyCorp', then it only installs modules in lib/MyCorp/, and totally ignores lib/OtherUtils/.

I have a structure like:

t/tests.t lib/MyCorp/Mod1.pm lib/MyCorp/Submodules/Mod2.pm lib/OtherUtil/Mod3.pm Makefile.PL bin/helperscript.pl
The problem is, Mod1.pm and Mod2.pm get installed OK, but Mod3 is ignored. NAME in Makefile.PL is set to 'MyCorp'.

Do I need multiple makefiles for this? aka:

Makefile.PL (master) MyCorp/Makefile.PL MyCorp/lib/MyCorp/Mod1.pm OtherUtil/Makefile.PL OtherUtil/lib/OtherUtil/Mod3.pm

The only way it works for me now, is if I put everything under MyCorp/.

Thanks, ~Jon

Replies are listed 'Best First'.
Re: Re: Re: Re: non-CPAN module distributions
by perrin (Chancellor) on Sep 17, 2003 at 19:26 UTC
    I don't think the NAME setting affects what gets installed at all. What happens when you set it to OtherUtil? There are definitely distributions on CPAN that have multiple module namespaces and they don't appear to be doing anything special in their Makefile.PL to accomplish this. Maybe you could post your Makefile.PL here?
      OK, I set the NAME setting to something other than one of my top level module names (NAME => 'LocalScripts'). It's really for local use only anyway. But, since NAME isn't one of the module names, it picks up everything in ./lib/.

      BTW - If I set it to OtherUtil, only OtherUtil gets installed, so it does seem to affect what get's installed.

      Thanks! ~Jon

        If I set it to OtherUtil, only OtherUtil gets installed, so it does seem to affect what get's installed.

        Interesting. That isn't documented well in MakeMaker. Anyway, glad to hear you found a solution that works.