diff options
author | Sam Ravnborg <sam@mars.ravnborg.org> | 2006-03-05 06:10:58 -0500 |
---|---|---|
committer | Sam Ravnborg <sam@mars.ravnborg.org> | 2006-03-05 06:10:58 -0500 |
commit | f6ecebd6592ea70e9450ec70efb24220dd961ebc (patch) | |
tree | c76d3b93958afdeb4ac2f672205cce2e40e7140a /Makefile | |
parent | 43c74d179596ba1f8eceb8c6a5c7e11afe233662 (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>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -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, |