aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2007-03-29 11:26:35 +0000
committerFelix Fietkau <nbd@openwrt.org>2007-03-29 11:26:35 +0000
commitb85ea2c3660b2073994b9d45b51e3278eaa6f99d (patch)
tree79888acb80a6bd85892a8ffa4d97845bde6307f4
parenta65202bf3faad6a64795dc86d3f65675048433d8 (diff)
downloadupstream-b85ea2c3660b2073994b9d45b51e3278eaa6f99d.tar.gz
upstream-b85ea2c3660b2073994b9d45b51e3278eaa6f99d.tar.bz2
upstream-b85ea2c3660b2073994b9d45b51e3278eaa6f99d.zip
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
-rw-r--r--Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 9b358c3b7a..bee47c45cc 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/%,%,$@)