Re: [Module::Build] Recursive builds?
Status: Beta
Brought to you by:
kwilliams
|
From: David G. <da...@hy...> - 2006-02-11 14:14:26
|
Eric Wilhelm wrote: > # from Ken Williams > # on Friday 10 February 2006 05:50 pm: > >> Are there any examples around for >> >>> using M::B for recursive builds, where you have a directory tree and >>> each directory has its own Build.PL? Seems like someone must have >>> done that already, but darned if I can find it. >> It also sounds not-too-difficult to me, but I don't actually know of >> anyone that's done it either. Anyone? > > Ken, Is this your Friday night humor or did I miss something? I was > thinking this was in the todo/not-quite-possible-yet category. > > I'm also interested in getting recursive builds working, but my last > patch ended up in purgatory so I haven't looked into it. My initial thought was that it seemed easy, but then my next thought was that a lot of M::B assumes certain semantics about the layout of a distribution (e.g. lib, t, META.yml, etc.) that aren't so easy to generalize to a recursive case. It would seem fairly trivial to add a "recurse_into" parameter with directories but then what? Are each of the directories mirrors of a normal distribution with their own lib and t directories? And how should building/testing/installing work? Copy all relevant files from all recursive directories into a top level blib directory? Or should there be blibs in each directory? Should top level tests assume the existence of (and know how to find) files from lower down in the tree? Maybe this is an in-joke or todo from years ago -- but has anyone actually drafted a spec for how this should work? Regards, David |