[Sheepdog] [PATCH v2] makefile: add cscope support

Liu Yuan namei.unix at gmail.com
Sat Dec 31 15:38:03 CET 2011


From: Liu Yuan <tailai.ly at taobao.com>

It is nice to get cscope.out by single line 'make cscope'

Signed-off-by: Liu Yuan <tailai.ly at taobao.com>
---
 v2: clean cscope files

 Makefile.am |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index cdc7165..1dd57d9 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -29,7 +29,12 @@ dist-clean-local:
 	rm -f autoconf automake autoheader
 
 clean-generic:
-	rm -rf $(SPEC) $(TARFILE)
+	rm -rf $(SPEC) $(TARFILE) cscope*
+
+cscope:
+	@echo create cscope.out
+	@find -name '*.[ch]' > cscope.files
+	@cscope -bq
 
 $(SPEC): $(SPEC).in
 	rm -f $@-t $@
-- 
1.7.8.rc3




More information about the sheepdog mailing list