Lines Matching +refs:write +refs:if +refs:changed
39 # filechk is used to check if the content of a generated file is updated.
46 # The rule defined shall write to stdout the content of the new file.
58 if [ -r $@ ] && cmp -s $@ $@.tmp; then \
77 if (which $(strip $(c))$(CC)) > /dev/null 2>&1 ; then \
82 TMPOUT := $(if $(KBUILD_EXTMOD),$(firstword $(KBUILD_EXTMOD))/)
91 if ($(1)) >/dev/null 2>&1; \
164 build := -f $(if $(KBUILD_SRC),$(srctree)/)scripts/Makefile.build obj
170 modbuiltin := -f $(if $(KBUILD_SRC),$(srctree)/)scripts/Makefile.modbuiltin obj
172 # Prefix -I with $(srctree) if it is not an absolute path.
173 # skip if -I has no parameter
174 addtree = $(if $(patsubst -I%,%,$(1)), \
175 $(if $(filter-out -I/%,$(1)),$(patsubst -I%,-I$(srctree)/%,$(1))) $(1))
178 flags = $(foreach o,$($(1)),$(if $(filter -I%,$(o)),$(call addtree,$(o)),$(o)))
181 # Short version is used, if $(quiet) equals `quiet_', otherwise full one.
182 echo-cmd = $(if $($(quiet)cmd_$(1)),\
189 objectify = $(foreach o,$(1),$(if $(filter /%,$(o)),$(o),$(obj)/$(o)))
192 # if_changed - execute command if any prerequisite is newer than
193 # target, or command line has changed
200 # Check if both arguments has same arguments. Result is empty string if equal.
205 arg-check = $(if $(strip $(cmd_$@)),,1)
218 # Execute command if command has changed or prerequisite(s) are updated.
220 if_changed = $(if $(strip $(any-prereq) $(arg-check)), \
226 if_changed_dep = $(if $(strip $(any-prereq) $(arg-check) ), \
234 # Will check if $(cmd_foo) or any of the prerequisites changed,
235 # and if so will execute $(rule_foo).
236 if_changed_rule = $(if $(strip $(any-prereq) $(arg-check) ), \
261 $(if $(filter $@, $(PHONY)),- due to target is PHONY, \
262 $(if $(wildcard $@), \
263 $(if $(strip $(any-prereq)),- due to: $(any-prereq), \
264 $(if $(arg-check), \
265 $(if $(cmd_$@),- due to command line change, \
266 $(if $(filter $@, $(targets)), \