
make | 279
Linux
Commands
This is the Title of the Book, eMatter Edition
Copyright © 2006 O’Reilly & Associates, Inc. All rights reserved.
$(foreach variable,list,string)
For each whitespace-separated word in list, expand its value
and assign it to variable; then expand string, which usually
contains a function referencing variable. Return the list of
results.
$(if condition,then-string[,else-string])
Expand string condition if it expands to a nonempty string,
then expand the then-string.Ifcondition expands to an empty
string, return the empty string or, if specified, expand and
return the else-string.
$(call variable,parameters)
Expand each item in comma-separated list parameters and
assign it to a temporary variable, $(n), where n is an incre-
mented number beginning with 0. Then expand variable,a
string referencing these temporary variables, and return the
result.
$(origin variable)
Return one of the following strings that describes how vari-
able was defined: undefined, default, environment,
environment override, file, command line, override,or
automatic.
$(shell command)
Return the results of command. Any newlines in the result are
converted to spaces. This function works similarly to back-
quotes in most shells.
$(error string)
When evaluated, generate a fatal error with the message string.
$(warning string)
When evaluated, generate a warning with the message string.
Macro string substitution
$(macro:s1=s2 ...