Lines Matching refs:if
21 # filechk is used to check if the content of a generated file is updated.
40 if [ -r $@ ] && cmp -s $@ $@.tmp; then \
55 as-option = $(shell if $(CC) $(CFLAGS) $(1) -Wa,-Z -c -o /dev/null \
62 cc-option = $(shell if $(CC) $(CFLAGS) $(1) -S -o /dev/null -xc /dev/null \
68 hostcc-option = $(shell if $(HOSTCC) $(HOSTCFLAGS) $(1) -S -o /dev/null -xc /dev/null \
73 cc-option-yn = $(shell if $(CC) $(CFLAGS) $(1) -S -o /dev/null -xc /dev/null \
84 $(if $(1), $(1), $(CC)))
88 cc-ifversion = $(shell if [ $(call cc-version, $(CC)) $(1) $(2) ]; then \
95 build := -f $(if $(KBUILD_SRC),$(srctree)/)scripts/Makefile.build obj
97 # Prefix -I with $(srctree) if it is not an absolute path
98 addtree = $(if $(filter-out -I/%,$(1)),$(patsubst -I%,-I$(srctree)/%,$(1))) $(1)
100 flags = $(foreach o,$($(1)),$(if $(filter -I%,$(o)),$(call addtree,$(o)),$(o)))
106 objectify = $(foreach o,$(1),$(if $(filter /%,$(o)),$(o),$(obj)/$(o)))
109 # if_changed - execute command if any prerequisite is newer than
117 # Check if both arguments has same arguments. Result in empty string if equal
123 echo-cmd = $(if $($(quiet)cmd_$(1)), \
128 # function to only execute the passed command if necessary
132 if_changed = $(if $(strip $(filter-out $(PHONY),$?) \
140 if_changed_dep = $(if $(strip $(filter-out $(PHONY),$?) \
150 # will check if $(cmd_foo) changed, or any of the prequisites changed,
151 # and if so will execute $(rule_foo)
152 if_changed_rule = $(if $(strip $(filter-out $(PHONY),$?) \