Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Re: Re: non-CPAN module distributions

by jmanning2k (Pilgrim)
on Sep 17, 2003 at 18:55 UTC ( #292217=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://292217]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (3)
As of 2022-05-28 02:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (98 votes). Check out past polls.

    Notices?