linux-trace-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] trace-cmd: fix makefile cscope target
@ 2023-01-04 23:54 Paulo Miguel Almeida
  2023-01-05  0:58 ` Steven Rostedt
  0 siblings, 1 reply; 2+ messages in thread
From: Paulo Miguel Almeida @ 2023-01-04 23:54 UTC (permalink / raw)
  To: linux-trace-devel; +Cc: paulo.miguel.almeida.rodenas

existing cscope target using sh pipes was broken and cscope was throwing
the following error:

	$ make cscope
	[..]
	cscope: no source files found

fix cscope target by writing files to be indexed into a separate file
called cscope.files which cscope reads by default

Signed-off-by: Paulo Miguel Almeida <paulo.miguel.almeida.rodenas@gmail.com>
---
 Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 5a350b6..8c2496c 100644
--- a/Makefile
+++ b/Makefile
@@ -485,7 +485,8 @@ TAGS:	force
 
 cscope: force
 	$(RM) cscope*
-	$(call find_tag_files) | cscope -b -q
+	$(call find_tag_files) > cscope.files
+	cscope -b -q -f cscope.out
 
 install_plugins_tracecmd: force
 	$(Q)$(MAKE) -C $(src)/lib/trace-cmd/plugins install_plugins
-- 
2.38.1


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

* Re: [PATCH] trace-cmd: fix makefile cscope target
  2023-01-04 23:54 [PATCH] trace-cmd: fix makefile cscope target Paulo Miguel Almeida
@ 2023-01-05  0:58 ` Steven Rostedt
  0 siblings, 0 replies; 2+ messages in thread
From: Steven Rostedt @ 2023-01-05  0:58 UTC (permalink / raw)
  To: Paulo Miguel Almeida; +Cc: linux-trace-devel

On Thu, 5 Jan 2023 12:54:20 +1300
Paulo Miguel Almeida <paulo.miguel.almeida.rodenas@gmail.com> wrote:

> existing cscope target using sh pipes was broken and cscope was throwing
> the following error:
> 
> 	$ make cscope
> 	[..]
> 	cscope: no source files found
> 
> fix cscope target by writing files to be indexed into a separate file
> called cscope.files which cscope reads by default
> 

Thanks Paulo.

I don't use cscope, so I never tested it. In fact, I had to install it to
test this patch after I applied it ;-)

Anyway, I added it to the queue.

Thanks!

-- Steve


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

end of thread, other threads:[~2023-01-05  0:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-04 23:54 [PATCH] trace-cmd: fix makefile cscope target Paulo Miguel Almeida
2023-01-05  0:58 ` Steven Rostedt

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).