From: Felix Fietkau Date: Thu, 29 Mar 2007 11:26:35 +0000 (+0000) Subject: run metadata scanning only once when multiple targets are specified on the command... X-Git-Tag: reboot~29593 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=f952681f35d4c023e933ce4b97f7f78cab74caf1;p=openwrt%2Fstaging%2Fblogic.git run metadata scanning only once when multiple targets are specified on the command line SVN-Revision: 6754 --- diff --git a/Makefile b/Makefile index 9b358c3b7a79..bee47c45cc50 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/%,%,$@)