Lines Matching refs:if
8 # Return "true" if LHS == RHS, otherwise "".
11 streq = $(if $(1),$(if $(subst $(1),,$(2))$(subst $(2),,$(1)),,true),$(if $(2),,true))
15 # Return "true" if LHS != RHS, otherwise "".
16 strneq = $(if $(call streq,$(1),$(2)),,true)
20 # Return "true" if 'list' contains the value 'item'.
21 contains = $(if $(strip $(foreach i,$(1),$(if $(call streq,$(2),$(i)),T,))),true,)
24 # Return "true" if 'a' is a subset of 'b'.
25 is_subset = $(if $(strip $(set_difference $(1),$(2))),,true)
29 set_difference = $(foreach i,$(1),$(if $(call contains,$(2),$(i)),,$(i)))
53 # Get the value of the given make variable, or the default-value if the variable
55 VarOrDefault = $(if $(call IsDefined,$(1)),$($(1)),$(2))
72 # if 'src' is undefined. The destination variable must be undefined.
75 $(if $(call IsUndefined,$(1)),,\
81 Assert = $(if $(1),,\
88 $(if $(call streq,$($(1)),$(2)),,\
99 $(if $(call contains,$(1),$(varname)),,\