]> git.hungrycats.org Git - linux/commitdiff
kbuild: Allow `make O=<obj> {cscope,tags}` to work
authorGeorge G. Davis <gdavis@mvista.com>
Wed, 21 Jul 2004 02:03:20 +0000 (04:03 +0200)
committerSam Ravnborg <sam@mars.ravnborg.org>
Wed, 21 Jul 2004 02:03:20 +0000 (04:03 +0200)
Allow `make O=<obj> {cscope,tags}` to work

Makefile

index 01837d64d4d5758c83009d7b5a4a07c250898ba3..96e79b6db27e20d3bd36713f0741f8e9ae94a7e5 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1009,19 +1009,19 @@ endif # KBUILD_EXTMOD
 # ---------------------------------------------------------------------------
 
 define all-sources
-       ( find . $(RCS_FIND_IGNORE) \
+       ( find $(srctree) $(RCS_FIND_IGNORE) \
               \( -name include -o -name arch \) -prune -o \
               -name '*.[chS]' -print; \
-         find arch/$(ARCH) $(RCS_FIND_IGNORE) \
+         find $(srctree)/arch/$(ARCH) $(RCS_FIND_IGNORE) \
               -name '*.[chS]' -print; \
-         find security/selinux/include $(RCS_FIND_IGNORE) \
+         find $(srctree)/security/selinux/include $(RCS_FIND_IGNORE) \
               -name '*.[chS]' -print; \
-         find include $(RCS_FIND_IGNORE) \
+         find $(srctree)/include $(RCS_FIND_IGNORE) \
               \( -name config -o -name 'asm-*' \) -prune \
               -o -name '*.[chS]' -print; \
-         find include/asm-$(ARCH) $(RCS_FIND_IGNORE) \
+         find $(srctree)/include/asm-$(ARCH) $(RCS_FIND_IGNORE) \
               -name '*.[chS]' -print; \
-         find include/asm-generic $(RCS_FIND_IGNORE) \
+         find $(srctree)/include/asm-generic $(RCS_FIND_IGNORE) \
               -name '*.[chS]' -print )
 endef