X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/196ad55bd2bdad8c5c86249afd4b1cec04855d35..f44d14c5d138476aba2016a00632175ee675617c:/target/Makefile diff --git a/target/Makefile b/target/Makefile index fef3d82e4..81ec60234 100644 --- a/target/Makefile +++ b/target/Makefile @@ -6,18 +6,19 @@ # curdir:=target -$(curdir)/builddirs:=linux sdk imagebuilder -$(curdir)/builddirs-prereq:=linux -$(curdir)/builddirs-default:=linux $(if $(CONFIG_SDK),sdk) $(if $(CONFIG_IB),imagebuilder) +$(curdir)/builddirs:=linux sdk imagebuilder toolchain +$(curdir)/builddirs-default:=linux +$(curdir)/builddirs-install:=linux $(if $(CONFIG_SDK),sdk) $(if $(CONFIG_IB),imagebuilder) $(if $(CONFIG_MAKE_TOOLCHAIN),toolchain) -$(curdir)/imagebuilder/prepare:=$(curdir)/linux/install +$(curdir)/imagebuilder/compile:=$(curdir)/linux/install -$(eval $(call stampfile,$(curdir),target,prereq)) -$(eval $(call stampfile,$(curdir),target,compile)) -$(eval $(call stampfile,$(curdir),target,install)) +# prerequisites for the individual targets +$(curdir)//install = $(1)/compile + +$(eval $(call stampfile,$(curdir),target,prereq,.config)) +$(eval $(call stampfile,$(curdir),target,compile,$(TMP_DIR)/.build)) +$(eval $(call stampfile,$(curdir),target,install,$(TMP_DIR)/.build)) -$($(curdir)/stamp-prereq): .config -$($(curdir)/stamp-compile): $(TMP_DIR)/.build $($(curdir)/stamp-install): $($(curdir)/stamp-compile) $(eval $(call subdir,$(curdir)))