All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] trivial: support cscope in Makefile and gitignore
@ 2013-10-29  2:28 Hitoshi Mitake
  2013-11-24 14:23 ` Hitoshi Mitake
  0 siblings, 1 reply; 4+ messages in thread
From: Hitoshi Mitake @ 2013-10-29  2:28 UTC (permalink / raw)
  To: stgt; +Cc: mitake.hitoshi, Hitoshi Mitake

After applying this patch, "make cscope" can generate cscope files for
tag jump. The generated files are ignored by the .gitignore file.

Signed-off-by: Hitoshi Mitake <mitake.hitoshi@lab.ntt.co.jp>
---
 .gitignore |    3 ++-
 Makefile   |    5 +++++
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/.gitignore b/.gitignore
index ca1c5d3..8c28cb7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -31,4 +31,5 @@ usr/tgtd
 usr/tgtadm
 usr/tgtimg
 
-
+# cscope files
+cscope.*
diff --git a/Makefile b/Makefile
index b71ad7b..ad1f12f 100644
--- a/Makefile
+++ b/Makefile
@@ -93,3 +93,8 @@ check32:
 check64: override ARCH=-m64
 check64:
 	CC=$(CHECK_CC_FLAGS) $(MAKE) all
+
+cscope:
+	find -name '*.[ch]' > cscope.files
+	cscope -bq
+
-- 
1.7.10.4

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

end of thread, other threads:[~2013-12-08  8:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-29  2:28 [PATCH] trivial: support cscope in Makefile and gitignore Hitoshi Mitake
2013-11-24 14:23 ` Hitoshi Mitake
2013-11-24 19:29   ` FUJITA Tomonori
2013-12-08  8:03     ` Hitoshi Mitake

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.