[Sheepdog] [PATCH] makefile: add cscope support
Liu Yuan
namei.unix at gmail.com
Sat Dec 31 14:45:54 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>
---
Makefile.am | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/Makefile.am b/Makefile.am
index cdc7165..62f3a71 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -30,6 +30,10 @@ dist-clean-local:
clean-generic:
rm -rf $(SPEC) $(TARFILE)
+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