X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/d67567dc2a562eb02459ba68260344d97db4b476..2821cd13222ea90af4a6f8cbeca529829f08de70:/toolchain/Makefile diff --git a/toolchain/Makefile b/toolchain/Makefile index e0af602c2..9e3a78138 100644 --- a/toolchain/Makefile +++ b/toolchain/Makefile @@ -6,8 +6,7 @@ # # Main makefile for the toolchain # -file:=${lastword ${MAKEFILE_LIST}} -curdir:=$(patsubst %/Makefile,%,${file}) +curdir:=toolchain # subdirectories to descend into $(curdir)/builddirs := kernel-headers $(if $(CONFIG_GDB),gdb) $(if $(CONFIG_NATIVE_TOOLCHAIN),,binutils gcc uClibc) @@ -22,11 +21,11 @@ endif $(curdir)/gcc/install:=$(curdir)/uClibc/install # prerequisites for the individual targets -$(curdir)/ := .config $(tools/stamp) +$(curdir)/ := .config prereq $(curdir)//prepare = $(STAGING_DIR)/include-host/.done $(curdir)//compile = $(1)/prepare $(curdir)//install = $(1)/compile -$(eval $(call stampfile,$(curdir),toolchain)) +$(eval $(call stampfile,$(curdir),toolchain,install)) $(eval $(call subdir,$(curdir)))