]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] kbuildL fix cscope index generation
authorAndrew Morton <akpm@osdl.org>
Mon, 26 Jan 2004 05:13:21 +0000 (21:13 -0800)
committerLinus Torvalds <torvalds@home.osdl.org>
Mon, 26 Jan 2004 05:13:21 +0000 (21:13 -0800)
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.

Makefile

index 84eddae4c61a889e514bf86f5e64bc3892da9f76..a466cfcf02c54fd9bc13e12a1f7bbd3bf64564d5 100644 (file)
--- 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)