summaryrefslogtreecommitdiff
path: root/doc/make.texi
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2002-10-25 18:42:52 +0000
committerPaul Smith <psmith@gnu.org>2002-10-25 18:42:52 +0000
commitbd108cf45cca0a37cb82aca0f3f3516e593d638b (patch)
tree46b4e8f2a272a69fce8717072a40d45931cc3568 /doc/make.texi
parent6374309c6d4d17ab1e4109133ab8aad55f77d51c (diff)
downloadgunmake-bd108cf45cca0a37cb82aca0f3f3516e593d638b.tar.gz
A few minor fixes to the manual and automake files.
Diffstat (limited to 'doc/make.texi')
-rw-r--r--doc/make.texi26
1 files changed, 21 insertions, 5 deletions
diff --git a/doc/make.texi b/doc/make.texi
index 3c01e0a..1f491ad 100644
--- a/doc/make.texi
+++ b/doc/make.texi
@@ -3627,13 +3627,17 @@ also find it useful to declare targets that invoke recursive
@code{make} commands as @samp{.PHONY} (for more discussion on when
this is useful, see @ref{Phony Targets}).
-For your convenience, GNU @code{make} sets the variable @code{CURDIR} to
-the pathname of the current working directory for you. If @code{-C} is
-in effect, it will contain the path of the new directory, not the
-original. The value has the same precedence it would have if it were
+@vindex @code{CURDIR}
+For your convenience, when GNU @code{make} starts (after it has
+processed any @code{-C} options) it sets the variable @code{CURDIR} to
+the pathname of the current working directory. This value is never
+touched by @code{make} again: in particular note that if you include
+files from other directories the value of @code{CURDIR} does not
+change. The value has the same precedence it would have if it were
set in the makefile (by default, an environment variable @code{CURDIR}
will not override this value). Note that setting this variable has no
-effect on the operation of @code{make}
+impact on the operation of @code{make} (it does not cause @code{make}
+to change its working directory, for example).
@menu
* MAKE Variable:: The special effects of using @samp{$(MAKE)}.
@@ -9726,6 +9730,18 @@ and concatenate the results.@*
Evaluate the variable @var{var} replacing any references to @code{$(1)},
@code{$(2)} with the first, second, etc. @var{param} values.@*
@xref{Call Function, ,The @code{call} Function}.
+
+@item $(eval @var{text})
+
+Evaluate @var{text} then read the results as makefile commands.
+Expands to the empty string.@*
+@xref{Eval Function, ,The @code{eval} Function}.
+
+@item $(value @var{var})
+
+Evaluates to the contents of the variable @var{var}, with no expansion
+performed on it.@*
+@xref{Value Function, ,The @code{value} Function}.
@end table
Here is a summary of the automatic variables.