diff options
author | Jan Beulich <JBeulich@novell.com> | 2005-09-06 05:47:04 -0400 |
---|---|---|
committer | Sam Ravnborg <sam@mars.ravnborg.org> | 2005-09-10 08:21:31 -0400 |
commit | cd05e6bdc6001ac6e8ab13720693b7e1302d9848 (patch) | |
tree | eb75a19df66fd56c61306141713396a45126d391 /Makefile | |
parent | 4e25d8bb9550fb5912165196fe8502cdb831a336 (diff) |
[PATCH] kbuild: fix split-include dependency
Splitting of autoconf.h requires that split-include was built before,
and
needs to be-re-done when split-include changes. This dependency was
previously missing. Additionally, since autoconf.h is (suppoosed to
be)
generated as a side effect of executing config targets, include/linux
should be created prior to running the respective sub-make.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -382,6 +382,9 @@ RCS_TAR_IGNORE := --exclude SCCS --exclude BitKeeper --exclude .svn --exclude CV | |||
382 | scripts_basic: | 382 | scripts_basic: |
383 | $(Q)$(MAKE) $(build)=scripts/basic | 383 | $(Q)$(MAKE) $(build)=scripts/basic |
384 | 384 | ||
385 | # To avoid any implicit rule to kick in, define an empty command. | ||
386 | scripts/basic/%: scripts_basic ; | ||
387 | |||
385 | .PHONY: outputmakefile | 388 | .PHONY: outputmakefile |
386 | # outputmakefile generate a Makefile to be placed in output directory, if | 389 | # outputmakefile generate a Makefile to be placed in output directory, if |
387 | # using a seperate output directory. This allows convinient use | 390 | # using a seperate output directory. This allows convinient use |
@@ -444,9 +447,8 @@ ifeq ($(config-targets),1) | |||
444 | include $(srctree)/arch/$(ARCH)/Makefile | 447 | include $(srctree)/arch/$(ARCH)/Makefile |
445 | export KBUILD_DEFCONFIG | 448 | export KBUILD_DEFCONFIG |
446 | 449 | ||
447 | config: scripts_basic outputmakefile FORCE | 450 | config %config: scripts_basic outputmakefile FORCE |
448 | $(Q)$(MAKE) $(build)=scripts/kconfig $@ | 451 | $(Q)mkdir -p include/linux |
449 | %config: scripts_basic outputmakefile FORCE | ||
450 | $(Q)$(MAKE) $(build)=scripts/kconfig $@ | 452 | $(Q)$(MAKE) $(build)=scripts/kconfig $@ |
451 | 453 | ||
452 | else | 454 | else |
@@ -854,7 +856,7 @@ include/asm: | |||
854 | 856 | ||
855 | # Split autoconf.h into include/linux/config/* | 857 | # Split autoconf.h into include/linux/config/* |
856 | 858 | ||
857 | include/config/MARKER: include/linux/autoconf.h | 859 | include/config/MARKER: scripts/basic/split-include include/linux/autoconf.h |
858 | @echo ' SPLIT include/linux/autoconf.h -> include/config/*' | 860 | @echo ' SPLIT include/linux/autoconf.h -> include/config/*' |
859 | @scripts/basic/split-include include/linux/autoconf.h include/config | 861 | @scripts/basic/split-include include/linux/autoconf.h include/config |
860 | @touch $@ | 862 | @touch $@ |