Lines Matching refs:call
10 # Usage: escape = $(call nl-escape[,escape])
20 # Usage: escaped-text = $(call escape-nl,text[,escape])
30 # $(call unescape-nl...)
32 escape-nl = $(subst $(newline),$(call nl-escape,$(2)),$(1))
36 # Usage: text = $(call unescape-nl,escaped-text[,escape])
40 unescape-nl = $(subst $(call nl-escape,$(2)),$(newline),$(1))
44 # Usage: $(shell some-command | $(call shell-escape-nl[,escape]))
46 # Use this to escape newlines from within a shell call;
60 # Usage: $(shell some-command | $(call shell-unescape-nl[,escape]))
62 # Use this to unescape newlines from within a shell call;
80 # Usage: embeddable-text = $(call escape-for-shell-sq,text)
90 # Usage: single-quoted-and-escaped-text = $(call shell-sq,text)
96 # Usage: wordified-text = $(call shell-wordify,text)
106 # | echo $(call shell-wordify,$(text))
110 # (this is in constrast to a `$(shell ...)' function call,
128 "$$(echo $(call escape-nl,$(shell-sq),$(2)) | $(call shell-unescape-nl,$(2)))"
133 # Usage: bool-value = $(call is-absolute,path)
139 # Usage: absolute-executable-path-or-empty = $(call lookup,path)
144 lookup = $(call unescape-nl,$(shell sh -c $(_l-sh)))
145 _l-sh = $(call shell-sq,command -v $(shell-sq) | $(call shell-escape-nl,))
149 # Usage: bool-value = $(call is-executable,path)
154 is-executable = $(call _is-executable-helper,$(shell-sq))
156 _is-executable-sh = $(call shell-sq,test -f $(1) -a -x $(1) && echo y)
160 # Usage: absolute-executable-path-or-empty = $(call get-executable,path)
173 # Usage: absolute-executable-path-or-empty = $(call get-executable-or-default,variable,default)
176 $(if $($(1)),$(call _ge_attempt,$($(1)),$(1)),$(call _ge_attempt,$(2)))
178 _ge_attempt = $(if $(get-executable),$(get-executable),$(call _gea_err,$(2)))
182 # Usage: option = $(call try-run, $(CC)...-o "$$TMP",option-ok,otherwise)
195 # Usage: cflags-y += $(call cc-option,-march=winchip-c6,-march=i586)
197 cc-option = $(call try-run,\