aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorGeorge G. Davis <gdavis@mvista.com>2004-07-21 04:03:20 +0200
committerSam Ravnborg <sam@mars.ravnborg.org>2004-07-21 04:03:20 +0200
commite060fd4b3b010b54de881a1b9caaf7563d3c56ad (patch)
tree3f2e59a93991cfacabcece2ee3e521f9a89a1475 /Makefile
parentf0d8c63be2017f2d3ef0261a2bcebbab8df7e65f (diff)
downloadhistory-e060fd4b3b010b54de881a1b9caaf7563d3c56ad.tar.gz
kbuild: Allow `make O=<obj> {cscope,tags}` to work
Allow `make O=<obj> {cscope,tags}` to work
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 6 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 01837d64d4d57..96e79b6db27e2 100644
--- 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