diff options
author | Paul Smith <psmith@gnu.org> | 2021-09-06 10:57:43 -0400 |
---|---|---|
committer | Paul Smith <psmith@gnu.org> | 2021-09-06 10:57:43 -0400 |
commit | 214df0e92a49203ca96fc8ed28799994f8bc6cb3 (patch) | |
tree | fc82337091cdde89be0e20464e0619ffdedcca10 /doc | |
parent | b2e898d0bfaeead6c2b4a2a12d3f7fdc6f47fb51 (diff) | |
download | make-git-214df0e92a49203ca96fc8ed28799994f8bc6cb3.tar.gz |
* doc/make.texi (Environment): [SV 60841] Clarify variable exporting.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/make.texi | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/doc/make.texi b/doc/make.texi index 53bd2a70..f9fce45f 100644 --- a/doc/make.texi +++ b/doc/make.texi @@ -6278,14 +6278,13 @@ because you know that no makefile will use them for other things. (Note this is not totally reliable; some makefiles set @code{CFLAGS} explicitly and therefore are not affected by the value in the environment.) -When @code{make} runs a recipe, variables defined in the -makefile are placed into the environment of each shell. This allows -you to pass values to sub-@code{make} invocations (@pxref{Recursion, -,Recursive Use of @code{make}}). By default, only variables that came -from the environment or the command line are passed to recursive -invocations. You can use the @code{export} directive to pass other -variables. @xref{Variables/Recursion, , Communicating Variables to a -Sub-@code{make}}, for full details. +When @code{make} runs a recipe, some variables defined in the makefile +are placed into the environment of each command @code{make} invokes. +By default, only variables that came from the @code{make}'s +environment or set on its command line are placed into the environment +of the commands. You can use the @code{export} directive to pass +other variables. @xref{Variables/Recursion, , Communicating Variables +to a Sub-@code{make}}, for full details. Other use of variables from the environment is not recommended. It is not wise for makefiles to depend for their functioning on environment variables |