aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam Ravnborg <sam@mars.ravnborg.org>2006-03-05 06:10:58 -0500
committerSam Ravnborg <sam@mars.ravnborg.org>2006-03-05 06:10:58 -0500
commitf6ecebd6592ea70e9450ec70efb24220dd961ebc (patch)
treec76d3b93958afdeb4ac2f672205cce2e40e7140a
parent43c74d179596ba1f8eceb8c6a5c7e11afe233662 (diff)
kbuild: fix make dir/file.xx when asm symlink is missing
Added a dependency so we do full preparation before trying to build single file targets. This fixes a case where Andrew Morton did: make kernel/sched.o rm include/asm make kernel/sched.o -> splat Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
-rw-r--r--Makefile12
1 files changed, 6 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index ce2bfbdeb96c..12c8d7147773 100644
--- a/Makefile
+++ b/Makefile
@@ -1289,17 +1289,17 @@ kernelversion:
1289# --------------------------------------------------------------------------- 1289# ---------------------------------------------------------------------------
1290# The directory part is taken from first prerequisite, so this 1290# The directory part is taken from first prerequisite, so this
1291# works even with external modules 1291# works even with external modules
1292%.s: %.c scripts FORCE 1292%.s: %.c prepare scripts FORCE
1293 $(Q)$(MAKE) $(build)=$(dir $<) $(dir $<)$(notdir $@) 1293 $(Q)$(MAKE) $(build)=$(dir $<) $(dir $<)$(notdir $@)
1294%.i: %.c scripts FORCE 1294%.i: %.c prepare scripts FORCE
1295 $(Q)$(MAKE) $(build)=$(dir $<) $(dir $<)$(notdir $@) 1295 $(Q)$(MAKE) $(build)=$(dir $<) $(dir $<)$(notdir $@)
1296%.o: %.c scripts FORCE 1296%.o: %.c prepare scripts FORCE
1297 $(Q)$(MAKE) $(build)=$(dir $<) $(dir $<)$(notdir $@) 1297 $(Q)$(MAKE) $(build)=$(dir $<) $(dir $<)$(notdir $@)
1298%.lst: %.c scripts FORCE 1298%.lst: %.c prepare scripts FORCE
1299 $(Q)$(MAKE) $(build)=$(dir $<) $(dir $<)$(notdir $@) 1299 $(Q)$(MAKE) $(build)=$(dir $<) $(dir $<)$(notdir $@)
1300%.s: %.S scripts FORCE 1300%.s: %.S prepare scripts FORCE
1301 $(Q)$(MAKE) $(build)=$(dir $<) $(dir $<)$(notdir $@) 1301 $(Q)$(MAKE) $(build)=$(dir $<) $(dir $<)$(notdir $@)
1302%.o: %.S scripts FORCE 1302%.o: %.S prepare scripts FORCE
1303 $(Q)$(MAKE) $(build)=$(dir $<) $(dir $<)$(notdir $@) 1303 $(Q)$(MAKE) $(build)=$(dir $<) $(dir $<)$(notdir $@)
1304 1304
1305# For external modules we shall include any directory of the target, 1305# For external modules we shall include any directory of the target,