Lines Matching refs:target
35 # Name of target with a '.' as filename prefix. foo/bar.o => foo/.bar.o
36 dot-target = $(dir $@).$(notdir $@)
39 # Name of target with a '.tmp_' as filename prefix. foo/bar.o => foo/.tmp_bar.o
40 tmp-target = $(dir $@).tmp_$(notdir $@)
45 depfile = $(subst $(comma),_,$(dot-target).d)
48 # filename of target with directory and extension stripped
101 trap "rm -f $(tmp-target)" EXIT; \
102 { $(filechk_$(1)); } > $(tmp-target); \
103 if [ ! -r $@ ] || ! cmp -s $@ $(tmp-target); then \
105 mv -f $(tmp-target) $@; \
131 # Delete the target on interruption
133 # GNU Make automatically deletes the target if it has already been changed by
141 # To address it, we clean the target in signal traps.
143 # Make deletes the target when it catches SIGHUP, SIGINT, SIGQUIT, SIGTERM.
157 # target, or command line has changed
166 # If the target does not exist, the *.cmd file should not be included so
167 # $(savedcmd_$@) gets empty. Then, target will be built even if $(newer-prereqs)
184 # Find any prerequisites that are newer than target or that do not exist.
187 # empty even if the target does not exist. cmd-check saves this corner case.
201 printf '%s\n' 'savedcmd_$@ := $(make-cmd)' > $(dot-target).cmd
208 $(objtree)/scripts/basic/fixdep $(depfile) $@ '$(make-cmd)' > $(dot-target).cmd;\
217 # why - tell why a target got built
220 # (1) - due to target is PHONY
221 # (2) - due to target missing
225 # (6) - due to target not in $(targets)
227 # (2) No target, so we better build it
228 # (3) Prerequisite is newer than target
229 # (4) The command line stored in the file named dir/.target.cmd
232 # (5) No dir/.target.cmd file (used to store command line)
233 # (6) No dir/.target.cmd file and target not listed in $(targets)
237 $(if $(filter $@, $(PHONY)),- due to target is PHONY, \
249 - due to target missing \