From: Sam Ravnborg Date: Thu, 6 Apr 2006 06:25:31 +0000 (+0200) Subject: kbuild: fix make dir/ X-Git-Tag: v2.6.17-rc2~98^2~9 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aa360879ed38fbe88057cc43f720881ab9e6a63a;p=linux-2.6 kbuild: fix make dir/ kbuild added an extra '/' after the directory - resulting in all files being rebuild in a subdirectory. Signed-off-by: Sam Ravnborg --- diff --git a/Makefile b/Makefile index 131950c029..c380f5891f 100644 --- a/Makefile +++ b/Makefile @@ -1284,7 +1284,7 @@ kernelversion: # build-dir => directory in kernel source tree to use ifeq ($(KBUILD_EXTMOD),) - build-dir = $(dir $@) + build-dir = $(patsubst %/,%,$(dir $@)) target-dir = $(dir $@) else zap-slash=$(filter-out .,$(patsubst %/,%,$(dir $@)))