X-Git-Url: http://git.ozo.com/?a=blobdiff_plain;f=tools%2FMakefile;h=492c02709909a937becb4f0ee497a6f3b78a5eb4;hb=344cc199364ef9e09139cf32f3d560f7f4365d96;hp=ea4ce7081aff8aa99fe34db632876e6bf984e3a0;hpb=d67567dc2a562eb02459ba68260344d97db4b476;p=openwrt-10.03%2F.git diff --git a/tools/Makefile b/tools/Makefile index ea4ce7081..492c02709 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) @@ -23,13 +21,13 @@ $(STAGING_DIR)/include-host/.done: @cp $(1)/include/*.h $$$$(dirname $$@)/ @touch $$@ $(curdir)//prepare = $(STAGING_DIR)/include-host/.done +$(curdir)//compile = $(STAGING_DIR)/include-host/.done 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)))