[PATCH] trace-cmd: fix makefile cscope target

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx>
---
 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




[Index of Archives]     [Linux USB Development]     [Linux USB Development]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux