Skip to contentSkip to conversation

trace-cmd: fix makefile cscope target

PATCH In review Paulo Miguel Almeida 2 participants 2 messages Jan 4, 2023 – Jan 5, 2023 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 trace-cmd: fix makefile cscope target

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

---
 Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
Makefile +2 -1
index 5a350b6..8c2496c 100644
@@ -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
Signature · 1 line
2.38.1
#1 lore raw
Quoted 10 lines · On Thu, 5 Jan 2023 12:54:20 +1300 Paulo Miguel Almeida…

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