From 7fbc7d3055458b7b3633d4a95ee344490dc3473e Mon Sep 17 00:00:00 2001 From: "Bjoern B. Brandenburg" Date: Tue, 23 Nov 2010 13:02:14 -0500 Subject: add cscope target to Makefile cscope is very nice for exploring the library and finding related code. Let's support it by pre-building an index of all files. --- Makefile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index adb12c8..d427e1b 100644 --- a/Makefile +++ b/Makefile @@ -73,7 +73,7 @@ all = lib ${rt-apps} rt-apps = cycles base_task rt_launch rtspin release_ts measure_syscall \ base_mt_task runtests -.PHONY: all lib clean dump-config TAGS tags +.PHONY: all lib clean dump-config TAGS tags cscope all: ${all} inc/config.makefile @@ -116,7 +116,7 @@ clean: rm -f *.o *.d *.a test_catalog.inc rm -f ${imported-headers} rm -f inc/config.makefile - rm -f tags TAGS + rm -f tags TAGS cscope.files cscope.out # Emacs Tags TAGS: @@ -128,6 +128,12 @@ tags: @echo tags @find . -type f -and -iname '*.[ch]' | xargs ctags +# cscope DB +cscope: + @echo cscope + @find . -type f -and -iname '*.[ch]' | xargs printf "%s\n" > cscope.files + @cscope -b + # ############################################################################## # Kernel headers. # The kernel does not like being #included directly, so let's -- cgit v1.2.2