On 05/10/09 14:14, Jim Meyering wrote:
This is a good argument for avoiding sub-makes.
On my list of experiments is to convert a project with non-empty
SUBDIRS to build via a single top-level make that includes
pieces from sub-directories. Improved parallelism via a complete
dependency tree is one advantage, since tools that don't need libraries
don't have to wait for an early library-build to finish before starting.
I actually did this once for a big project with many subdirectories,
using automake. I ended up with a single, top level makefile with all
the properties you describe. However, the other property it had was that
it was so big it took make 15 seconds to parse it. Although it slightly
improved a complete rebuild, the overhead made frequent small, partial
rebuilds too annoying. I junked it.
Matt
--
Matthew Booth, RHCA, RHCSS
Red Hat Engineering, Virtualisation Team
M: +44 (0)7977 267231
GPG ID: D33C3490
GPG FPR: 3733 612D 2D05 5458 8A8A 1600 3441 EA19 D33C 3490