Return a string describing
how the make
variable, variable,
was defined. See The
origin
function.
$(foreach
var,
words,
text)
Evaluate text
with var
bound to each word in words,
and concatenate the results. See The
foreach
function.
The following is a summary
of the automatic variables. See Automatic
variables for full information.
$@
The file name of the target.
$%
The target member name,
when the target is an archive member.
$<
The name of the first dependency.
$?
The names of all the dependencies
that are newer than the target, with spaces between them. For dependencies
which are archive members, only the member named is used (see Using
make
to update archive files).
$ˆ
$+
The names of all the dependencies
with spaces between them. For dependencies which are archive members, only
the member named is used (see Using
make
to update archive files).
The value of $ˆ
omits duplicate dependencies while $+
retains them and preserves their order.
The name of the system default
command interpreter, usually ‘/bin/sh’.
You can set SHELL
in the makefile to change the shell used to run commands. See Command
execution.
MAKE
The name with which make
was invoked. Using this variable in commands has special meaning. See How
the MAKE
variable works.