linux-trace-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] trace-cmd: generate cscope.files when building cscope index
@ 2020-01-12 19:05 Marcelo Diop-Gonzalez
  2020-01-20 22:33 ` Steven Rostedt
  0 siblings, 1 reply; 9+ messages in thread
From: Marcelo Diop-Gonzalez @ 2020-01-12 19:05 UTC (permalink / raw)
  To: rostedt; +Cc: linux-trace-devel

Currently, running 'make cscope' gives this output:

rm -f cscope*
find . -name '\.pc' -prune -o -name '*\.[ch]' -print -o -name '*\.[ch]pp' ! -name '\.#' -print | cscope -b -q
cscope: no source files found
make: *** [Makefile:351: cscope] Error 1

By default, cscope looks in cscope.files for the list of
sources, so printing the source file list to this file
fixes the above error.

Signed-off-by: Marcelo Diop-Gonzalez <marcgonzalez@google.com>
---
 Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index efd9ed4..0b15bf5 100644
--- a/Makefile
+++ b/Makefile
@@ -348,7 +348,8 @@ TAGS:	force
 
 cscope: force
 	$(RM) cscope*
-	$(call find_tag_files) | cscope -b -q
+	$(call find_tag_files) > cscope.files
+	cscope -b -q
 
 install_plugins_traceevent: force
 	$(Q)$(MAKE) -C $(src)/lib/traceevent/plugins install_plugins
-- 
2.20.1


^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2020-01-23 21:11 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-12 19:05 [PATCH] trace-cmd: generate cscope.files when building cscope index Marcelo Diop-Gonzalez
2020-01-20 22:33 ` Steven Rostedt
2020-01-22 17:21   ` Marcelo Diop-Gonzalez
2020-01-22 17:28     ` Steven Rostedt
2020-01-22 18:49       ` Marcelo Diop-Gonzalez
2020-01-22 19:08         ` Steven Rostedt
2020-01-23 19:51           ` Marcelo Diop-Gonzalez
2020-01-23 21:08             ` Steven Rostedt
2020-01-23 21:11               ` Marcelo Diop-Gonzalez

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).