summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMattia Dongili <malattia@linux.it>2006-02-19 13:50:37 +0100
committerSam Ravnborg <sam@mars.ravnborg.org>2006-02-19 14:27:57 +0100
commit0f558c333445a0181f33f9e6f996ce7cf008206a (patch)
treea25974ec38d776166103ffe254e54697957b286d /Makefile
parent93684d3b8062d1cebdeaed398ec6d1f354cb41a9 (diff)
kbuild: fix a cscope bug (make cscope segfaults)
Workaround a cscope bug where a trailing ':' in VPATH makes it segfault and let it build the cross-reference succesfully. VPATH=/home/mattia/devel/kernel/git/linux-2.6: cscope -b [1] 17555 segmentation fault VPATH=/home/mattia/devel/kernel/git/linux-2.6: cscope -b Signed-off-by: Mattia Dongili <malattia@linux.it> Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index a55a1e4e6cda..7a95f4f8ef14 100644
--- a/Makefile
+++ b/Makefile
@@ -137,7 +137,7 @@ objtree := $(CURDIR)
src := $(srctree)
obj := $(objtree)
-VPATH := $(srctree):$(KBUILD_EXTMOD)
+VPATH := $(srctree)$(if $(KBUILD_EXTMOD),:$(KBUILD_EXTMOD))
export srctree objtree VPATH TOPDIR