Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

Re: Re: Re: MakeMaker to make Makefile in subdir

by scain (Curate)
on Sep 24, 2003 at 16:10 UTC ( [id://293899]=note: print w/replies, xml ) Need Help??

in reply to Re: Re: MakeMaker to make Makefile in subdir
in thread MakeMaker to make Makefile in subdir

Thanks demerphq and PodMaster; this is at least getting me close. There is some magic here. My directory structure looks like this:
gmod/ src/ component1/ component2/ component3/
All I had to do was put a simple Makefile.PL in the src/ directory and when the main Makefile.PL was executed in the gmod/ directory, it saw the one in src/, which in turn saw the ones in component directories.

This probably would have worked flawlessly if the items in the component directories were only Perl modules, but they are more complicated than that, and have in their Makefile.PLs custom overrides to the install target (so that items can be installed under /usr/local/apache, for instance). I may be able to get around that by overriding the install target in the main Makefile.PL, but that is unattractive for at least one reason: it makes the main Makefile.PL more fragile (if the author of component1 changes his Makefile.PL and doesn't tell me, it won't work as expected).

Thanks again,
Project coordinator of the Generic Model Organism Database Project

Log In?

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (3)
As of 2024-06-25 11:23 GMT
Find Nodes?
    Voting Booth?

    No recent polls found

    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.