Am 06.01.2011 22:50, schrieb David Sommerseth: > On 06/01/11 18:13, Matthias Andree wrote: > | Greetings, > | > | this is the beta2.2 patch pair for hooking the auth-pam and down-root > | plugins to the build. > | > | The bugfix2.1 patch pair has been sent earlier. > | > | Looking for review, ACK and NAK. > | > > Hi Matthias, > > And thanks a lot for your patches. Just one question. I see you try to do > all the Makefile generation in the main/root Makefile.am. That is for sure a > fast-track to get started. But I'm concerned if that might backfire in the > long run.
Yes, but in my experience with autotools, the fewer SUBDIRS you have the better it works, the faster and more reliably everything builds. SUBDIRS should only be used as a last resort. > Why not to use the SUBDIRS variable in the root Makefile.am, and then have > separate Makefile.am per plugin? That way, each plug-in can more easily > control the build independently. SUBDIRS is one of the worst ideas I've seen in autotools, and I try to avoid that wherever reasonable. SUBDIRS breaks dependencies because you run multiple "make" processes that all only have a partial view. It is inefficient, leads to autotools bloat, and other reasons are given in "Recursive make considered harmful" by Peter Miller of "cook" fame (URL below). Old as it may seem its points still stand. Automake allows for per-target build control through _LDADD, _DEPENDENCIES and all sorts of options, and if that fails you can still hand-code the build rules, automake passes them through. http://miller.emu.id.au/pmiller/books/rmch/ -- Matthias Andree