Signed-off-by: Michael Witten <mfwit...@gmail.com> --- doc/make.texi | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/doc/make.texi b/doc/make.texi index 7460963..091e098 100644 --- a/doc/make.texi +++ b/doc/make.texi @@ -5199,7 +5199,7 @@ a := $($(x)) @noindent defines @code{a} as @samp{z}: the @samp{$(x)} inside @samp{$($(x))} expands -to @samp{y}, so @samp{$($(x))} expands to @samp{$(y)} which in turn expands +to @samp{y}, so @samp{$($(x))} expands to @samp{$(y)}, which in turn expands to @samp{z}. Here, the name of the variable to reference is not stated explicitly; it is computed by expansion of @samp{$(x)}. The reference @samp{$(x)} here is nested within the outer variable reference. @@ -5216,7 +5216,7 @@ a := $($($(x))) @noindent Here, the innermost @samp{$(x)} expands to @samp{y}, so @samp{$($(x))} -expands to @samp{$(y)} which in turn expands to @samp{z}; now we have +expands to @samp{$(y)}, which in turn expands to @samp{z}; now we have @samp{$(z)}, which becomes @samp{u}. References to recursively-expanded variables within a variable name are @@ -5230,8 +5230,8 @@ a := $($(x)) @end example @noindent -defines @code{a} as @samp{Hello}: @samp{$($(x))} becomes @samp{$($(y))} -which becomes @samp{$(z)} which becomes @samp{Hello}. +defines @code{a} as @samp{Hello}: @samp{$($(x))} becomes @samp{$($(y))}, +which becomes @samp{$(z)}, which becomes @samp{Hello}. Nested variable references can also contain modified references and function invocations (@pxref{Functions, ,Functions for Transforming Text}), -- 1.7.4.18.g68fe8 _______________________________________________ Bug-make mailing list Bug-make@gnu.org http://lists.gnu.org/mailman/listinfo/bug-make