summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAndrew Morton <akpm@osdl.org>2004-01-25 21:13:21 -0800
committerLinus Torvalds <torvalds@home.osdl.org>2004-01-25 21:13:21 -0800
commit3cd681bae4360e2f67ef9b232db28e13319f1c17 (patch)
tree8cdd55280e103ad7e3f44b55db08a0d5ad579f8e /Makefile
parent92fb1eff04583774e2fc77d0a9c293522ad1b840 (diff)
[PATCH] kbuildL fix cscope index generation
From: Sam Ravnborg <sam@ravnborg.org> cscope expect to find the list of files used for the database in a file named cscope.files. Generate this file as part of 'make cscope'. This solves http://bugme.osdl.org/show_bug.cgi?id=1948.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 9 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 84eddae4c61a..a466cfcf02c5 100644
--- a/Makefile
+++ b/Makefile
@@ -825,8 +825,15 @@ define all-sources
-name '*.[chS]' -print )
endef
-quiet_cmd_cscope = MAKE $@
-cmd_cscope = $(all-sources) | cscope -k -b -i -
+quiet_cmd_cscope-file = FILELST cscope.files
+ cmd_cscope-file = $(all-sources) > cscope.files
+
+quiet_cmd_cscope = MAKE cscope.out
+ cmd_cscope = cscope -k -b
+
+cscope: FORCE
+ $(call cmd,cscope-file)
+ $(call cmd,cscope)
quiet_cmd_TAGS = MAKE $@
cmd_TAGS = $(all-sources) | etags -
@@ -840,9 +847,6 @@ define cmd_tags
$(all-sources) | xargs ctags $$CTAGSF -a
endef
-cscope: FORCE
- $(call cmd,cscope)
-
TAGS: FORCE
$(call cmd,TAGS)