From: Edward Welbourne <address@hidden>
To: Ed H <address@hidden>
Cc: address@hidden
Sent: Wednesday, May 16, 2012 1:21 AM
Subject: Re: include should be relative to current Makefile
> ifndef TOP
>
> include ../Makefile
>
> else
>
> SUBDIRS = <yadda yadda>
> TARGETS = <list of things>
> SRCS = <etc etc>
>
> endif
>
> All of the complexity you allude to can be safely buried in the TOP-level
> Makefiles,
I can't help but think this is an entirely upside-down approach. You
appear to be expecting context's make-file to supply values for the SRCS
and SUBDIRS of the module, which should surely be the master source for
that information. When sub-module foo is under separate version control
from the rest, this is particularly important: the source list may
change from one release of foo to the next - the parent shouldn't need
to care - that's *why* it includes a make fragment from the sub-module.