summaryrefslogtreecommitdiff
path: root/include/toplevel.mk
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2009-03-03 15:08:55 +0000
committerFelix Fietkau <nbd@openwrt.org>2009-03-03 15:08:55 +0000
commit88f6e9f9fde6947ba556bf821869a159a2b98f69 (patch)
tree0367145b690d5afff8e04892eb48f50b9b9360f3 /include/toplevel.mk
parent431c9267b4016b7e712a0edf1e594bd71ac850b4 (diff)
downloadmtk-20170518-88f6e9f9fde6947ba556bf821869a159a2b98f69.zip
mtk-20170518-88f6e9f9fde6947ba556bf821869a159a2b98f69.tar.gz
mtk-20170518-88f6e9f9fde6947ba556bf821869a159a2b98f69.tar.bz2
optimize the .config dependency chain in the toplevel makefile
SVN-Revision: 14740
Diffstat (limited to 'include/toplevel.mk')
-rw-r--r--include/toplevel.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/toplevel.mk b/include/toplevel.mk
index 7f5308f..9dfc9df 100644
--- a/include/toplevel.mk
+++ b/include/toplevel.mk
@@ -49,7 +49,7 @@ prepare-tmpinfo: FORCE
./scripts/metadata.pl package_mk tmp/.packageinfo > tmp/.packagedeps || { rm -f tmp/.packagedeps; false; }
touch $(TOPDIR)/tmp/.build
-.config: ./scripts/config/conf prepare-tmpinfo $(if $(CONFIG_HAVE_DOT_CONFIG),,FORCE)
+.config: ./scripts/config/conf $(if $(CONFIG_HAVE_DOT_CONFIG),,prepare-tmpinfo)
@+if [ \! -e .config ] || ! grep CONFIG_HAVE_DOT_CONFIG .config >/dev/null; then \
[ -e $(HOME)/.openwrt/defconfig ] && cp $(HOME)/.openwrt/defconfig .config; \
$(_SINGLE)$(NO_TRACE_MAKE) menuconfig $(PREP_MK); \
@@ -106,7 +106,7 @@ download: .config FORCE
clean dirclean: .config
@+$(SUBMAKE) -r $@
-prereq:: .config
+prereq:: prepare-tmpinfo .config
@+$(MAKE) -r -s tmp/.prereq-build $(PREP_MK)
@+$(NO_TRACE_MAKE) -r -s $@