Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

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

by scain (Curate)
on Sep 24, 2003 at 16:10 UTC ( #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,
Scott
Project coordinator of the Generic Model Organism Database Project


Comment on Re: Re: Re: MakeMaker to make Makefile in subdir
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2014-09-23 07:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (210 votes), past polls