run metadata scanning only once when multiple targets are specified on the command...
authorFelix Fietkau <nbd@openwrt.org>
Thu, 29 Mar 2007 11:26:35 +0000 (11:26 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Thu, 29 Mar 2007 11:26:35 +0000 (11:26 +0000)
SVN-Revision: 6754

Makefile

index 9b358c3b7a79309b2e2513b5f6596de7dd2ef24c..bee47c45cc509f3a133d99cfac0fd9a8589cb3e7 100644 (file)
--- 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/%,%,$@)