* Adam Kennedy <[EMAIL PROTECTED]> [2006-04-01 04:10]: > I guess the problem is that in Makefile.PL strictly speaking > you're not _really_ meant to be doing any building of stuff. > > That's supposed to be what you do in make. > > So one solution to your problem might be to add something that > defers that part until make.
Of course, the problem is hacking EU::MM etc such that it actually works, which is a lot more effort than cheating and doing it in `Makefile.PL`. > For example...erm... take a --make flag in the Makefile.PL that > tells it to go off and do the generation of things, and then if > not passed --make, run the normal stuff, but add an entry into > the appropriate place so that a Makefile rule is added to > trigger that callback. Or port to M::B and quit worrying… I wonder though if there aren’t cases where you *will* need some sort of dependency for the build script generator to run at all; maybe stuff dealing with dependencies not natively supported by the CPAN shell in question, or something. Being able to reinvoke the dependency resolver in the shell would be the only clean solution in such cases. Regards, -- Aristotle Pagaltzis // <http://plasmasturm.org/>