summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2007-03-29 11:26:35 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2007-03-29 11:26:35 +0000
commitf9330b47eabb5e7584e9a0c5c775cb3ace652c35 (patch)
tree79888acb80a6bd85892a8ffa4d97845bde6307f4 /Makefile
parent15aefc67e4ad085c8ff5c6c79a2dd22b15e9b2f3 (diff)
run metadata scanning only once when multiple targets are specified on the command line
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6754 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 9b358c3b7..bee47c45c 100644
--- a/Makefile
+++ b/Makefile
@@ -91,11 +91,14 @@ kernel_menuconfig: .config FORCE
-$(MAKE) target/linux-prepare
$(NO_TRACE_MAKE) -C target/linux menuconfig
-package/%:
+scan_packages:
@$(NO_TRACE_MAKE) -s tmp/.pkginfo tmp/.targetinfo
+
+
+package/%: scan_packages
$(MAKE) -C package $(patsubst package/%,%,$@)
-target/%:
+target/%: scan_packages
@$(NO_TRACE_MAKE) -s tmp/.pkginfo tmp/.targetinfo
$(MAKE) -C target $(patsubst target/%,%,$@)