[PATCH v2] trivial: support cscope in Makefile and gitignore

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

 



From: Hitoshi Mitake <mitake.hitoshi@xxxxxxxxxxxxx>

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@xxxxxxxxxxxxx>
---
 .gitignore | 3 ++-
 Makefile   | 4 ++++
 2 files changed, 6 insertions(+), 1 deletion(-)

v2: fix a style warning

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 e34d861..6c96441 100644
--- a/Makefile
+++ b/Makefile
@@ -93,3 +93,7 @@ check32:
 check64: override ARCH=-m64
 check64:
 	CC=$(CHECK_CC_FLAGS) $(MAKE) all
+
+cscope:
+	find -name '*.[ch]' > cscope.files
+	cscope -bq
-- 
1.8.1.2

--
To unsubscribe from this list: send the line "unsubscribe stgt" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux SCSI]     [Linux RAID]     [Linux Clusters]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]

  Powered by Linux