From: Liu Yuan <[email protected]>

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

Signed-off-by: Liu Yuan <[email protected]>
---
 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

-- 
sheepdog mailing list
[email protected]
http://lists.wpkg.org/mailman/listinfo/sheepdog

Reply via email to