X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/12120339e27533c84ef0ae388827f4fe7d4d86b6..7b3d6c14f8746184255e0a7f7e537c90bd9d02ac:/Makefile?ds=sidebyside diff --git a/Makefile b/Makefile index bcbfd561b..bee47c45c 100644 --- a/Makefile +++ b/Makefile @@ -45,9 +45,11 @@ ifeq ($(FORCE),) endif tmp/.pkginfo: FORCE + @mkdir -p tmp/info @$(NO_TRACE_MAKE) -s -f include/scan.mk SCAN_TARGET="pkginfo" SCAN_DIR="package" SCAN_NAME="package" SCAN_DEPS="$(shell ls include/package*.mk) include/kernel.mk" SCAN_EXTRA="" tmp/.targetinfo: FORCE + @mkdir -p tmp/info @$(NO_TRACE_MAKE) -s -f include/scan.mk SCAN_TARGET="targetinfo" SCAN_DIR="target/linux" SCAN_NAME="target" SCAN_DEPS="$(shell ls include/kernel*.mk)" SCAN_EXTRA="" tmpinfo-clean: FORCE @@ -89,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/%,%,$@)