X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/d67567dc2a562eb02459ba68260344d97db4b476..196ad55bd2bdad8c5c86249afd4b1cec04855d35:/tools/Makefile diff --git a/tools/Makefile b/tools/Makefile index ea4ce7081..07944af2b 100644 --- a/tools/Makefile +++ b/tools/Makefile @@ -6,9 +6,7 @@ # # Main makefile for the host tools # - -file:=${lastword ${MAKEFILE_LIST}} -curdir:=$(patsubst %/Makefile,%,${file}) +curdir:=tools # subdirectories to descend into $(curdir)/builddirs := sed sstrip ipkg-utils ext2fs squashfs mtd-utils lzma mkimage firmware-utils patch-cmdline $(if $(CONFIG_CCACHE),ccache) @@ -27,9 +25,8 @@ endef $(eval $(call copy_include,$(curdir))) # prerequisites for the individual targets -$(curdir)/ := .config -$(curdir)//compile = $(1)/prepare +$(curdir)/ := .config prereq $(curdir)//install = $(1)/compile -$(eval $(call stampfile,$(curdir),tools)) +$(eval $(call stampfile,$(curdir),tools,install)) $(eval $(call subdir,$(curdir)))