Re: Question About Gmake Internals

Paul Smith <[email protected]> Fri, 03 Sep 2021 12:47:33 -0400
Newsgroups gmane.comp.gnu.make.devel
Organization GNU's Not UNIX!
Message-ID <[email protected]>
On Fri, 2021-09-03 at 09:01 -0700, Jon Forrest wrote:
> Thanks, Paul. I've been looking at variable.c but it isn't clear to
> me when and why it's necessary to create a new variable set.

Variable sets are how make manages scoping in variables.

For one example, automatic variables created for a given recipe are in
a separate variable set.  For another example, target-specific
variables are in a separate variable set.

FYI, there is no separate design document anywhere for GNU make.
 There's the code, the changelogs, and the commit messages.