[U-Boot-Users] [PATCH] add cscope build target

Li Yang leoli at freescale.com
Wed Feb 27 11:59:48 CET 2008


Add cscope build target to generate cscope database for code
browsing.

Signed-off-by: Li Yang <leoli at freescale.com>
---
 Makefile |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/Makefile b/Makefile
index d6a0299..1efd33e 100644
--- a/Makefile
+++ b/Makefile
@@ -400,6 +400,10 @@ tags ctags:
 etags:
 		etags -a -o $(obj)etags `find $(SUBDIRS) $(TAG_SUBDIRS) \
 						-name '*.[ch]' -print`
+cscope:
+		find $(SUBDIRS) $(TAG_SUBDIRS) -name '*.[ch]' -print \
+						> cscope.files
+		cscope -b -q -k
 
 $(obj)System.map:	$(obj)u-boot
 		@$(NM) $< | \
-- 
1.5.4.rc4





More information about the U-Boot mailing list