168 GNU make
$(error text...)
When this function is evaluated, make generates a fatal error with the message
text.
See Section 8.12 [Functions That Control Make], page 96.
$(warning text...)
When this function is evaluated, make generates a warning with the message
text.
See Section 8.12 [Functions That Control Make], page 96.
$(shell command)
Execute a shell command and return its output.
See Section 8.13 [The shell Function], page 97.
$(origin variable)
Return a string describing how the make variable variable was defined.
See Section 8.10 [The origin Function], page 94.
$(flavor variable)
Return a string describing the flavor of the make variable variable.
See Section 8.11 [The flavor Function], page 95.
$(foreach var,words,text)
Evaluate text with var bound to each word in words, and concatenate the
results.
See Section 8.5 [The foreach Function], page 90.
$(if condition,then-part[,else-part])
Evaluate the condition condition; if it’s non-empty substitute the expansion of
the then-part otherwise substitute the expansion of the else-part.
See Section 8.4 [Functions for Conditionals], page 89.
$(or condition1[,condition2[,condition3...]])
Evaluate each condition conditionN one at a time; substitute the first non-
empty expansion. If all expansions are empty, substitute the empty string.
See Section 8.4 [Functions for Conditionals], page 89.
$(and condition1[,condition2[,condition3...]])
Evaluate each condition conditionN one at a time; if any expansion results in
the empty string substitute the empty string. If all expansions result in a non-
empty string, substitute the expansion of the last condition.
See Section 8.4 [Functions for Conditionals], page 89.
$(call var,param,...)
Evaluate the variable var replacing any references to $(1), $(2) with the first,
second, etc. param values.
See Section 8.7 [The call Function], page 92.
$(eval text)
Evaluate text then read the results as makefile commands. Expands to the
empty string.
See Section 8.9 [The eval Function], page 93.
Komentáře k této Příručce