From f4e7afec1e28e7fa2be397a3f3f63b40061f24b7 Mon Sep 17 00:00:00 2001 From: "Bjoern B. Brandenburg" Date: Tue, 23 Nov 2010 11:58:56 -0500 Subject: add TAGS and tags targets to Makefile It's nice to have a TAGS file around when exploring the library. Let's generate one for vim and emacs. --- Makefile | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index b22cb0d..adb12c8 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 +.PHONY: all lib clean dump-config TAGS tags all: ${all} inc/config.makefile @@ -116,6 +116,17 @@ clean: rm -f *.o *.d *.a test_catalog.inc rm -f ${imported-headers} rm -f inc/config.makefile + rm -f tags TAGS + +# Emacs Tags +TAGS: + @echo TAGS + @find . -type f -and -iname '*.[ch]' | xargs etags + +# Vim Tags +tags: + @echo tags + @find . -type f -and -iname '*.[ch]' | xargs ctags # ############################################################################## # Kernel headers. -- cgit v1.2.2