Home | History | Annotate | Download | only in config

Lines Matching defs:executable

139 # Usage: absolute-executable-path-or-empty = $(call lookup,path)
147 # is-executable
149 # Usage: bool-value = $(call is-executable,path)
154 is-executable = $(call _is-executable-helper,$(shell-sq))
155 _is-executable-helper = $(shell sh -c $(_is-executable-sh))
156 _is-executable-sh = $(call shell-sq,test -f $(1) -a -x $(1) && echo y)
158 # get-executable
160 # Usage: absolute-executable-path-or-empty = $(call get-executable,path)
162 # The goal is to get an absolute path for an executable;
168 get-executable = $(if $(1),$(if $(is-absolute),$(_ge-abspath),$(lookup)))
169 _ge-abspath = $(if $(is-executable),$(1))
171 # get-supplied-or-default-executable
173 # Usage: absolute-executable-path-or-empty = $(call get-executable-or-default,variable,default)
175 define get-executable-or-default
178 _ge_attempt = $(or $(get-executable),$(_gea_warn),$(call _gea_err,$(2)))
179 _gea_warn = $(warning The path '$(1)' is not executable.)