run metadata scanning only once when multiple targets are specified on the command...
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Thu, 29 Mar 2007 11:26:35 +0000 (11:26 +0000)
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Thu, 29 Mar 2007 11:26:35 +0000 (11:26 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6754 3c298f89-4303-0410-b956-a3cf2f4a3e73

Makefile

index 9b358c3..bee47c4 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/%,%,$@)
 
This page took 0.023078 seconds and 4 git commands to generate.