From 3cd681bae4360e2f67ef9b232db28e13319f1c17 Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Sun, 25 Jan 2004 21:13:21 -0800 Subject: [PATCH] [PATCH] kbuildL fix cscope index generation From: Sam Ravnborg 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 | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 84eddae4c61a8..a466cfcf02c54 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) -- 2.53.0