aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjoern B. Brandenburg <bbb@cs.unc.edu>2010-11-23 11:58:56 -0500
committerBjoern B. Brandenburg <bbb@cs.unc.edu>2010-11-23 13:07:10 -0500
commitf4e7afec1e28e7fa2be397a3f3f63b40061f24b7 (patch)
treed189a60451f7bda9c8488b35613efe5425c788e9
parent25559139cf5480ccfb1ac180e9038448d5d2410e (diff)
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.
-rw-r--r--Makefile13
1 files changed, 12 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index b22cb0d..adb12c8 100644
--- a/Makefile
+++ b/Makefile
@@ -73,7 +73,7 @@ all = lib ${rt-apps}
73rt-apps = cycles base_task rt_launch rtspin release_ts measure_syscall \ 73rt-apps = cycles base_task rt_launch rtspin release_ts measure_syscall \
74 base_mt_task runtests 74 base_mt_task runtests
75 75
76.PHONY: all lib clean dump-config 76.PHONY: all lib clean dump-config TAGS tags
77 77
78all: ${all} inc/config.makefile 78all: ${all} inc/config.makefile
79 79
@@ -116,6 +116,17 @@ clean:
116 rm -f *.o *.d *.a test_catalog.inc 116 rm -f *.o *.d *.a test_catalog.inc
117 rm -f ${imported-headers} 117 rm -f ${imported-headers}
118 rm -f inc/config.makefile 118 rm -f inc/config.makefile
119 rm -f tags TAGS
120
121# Emacs Tags
122TAGS:
123 @echo TAGS
124 @find . -type f -and -iname '*.[ch]' | xargs etags
125
126# Vim Tags
127tags:
128 @echo tags
129 @find . -type f -and -iname '*.[ch]' | xargs ctags
119 130
120# ############################################################################## 131# ##############################################################################
121# Kernel headers. 132# Kernel headers.