diff options
| author | Bjoern B. Brandenburg <bbb@cs.unc.edu> | 2010-11-23 11:58:56 -0500 |
|---|---|---|
| committer | Bjoern B. Brandenburg <bbb@cs.unc.edu> | 2010-11-23 13:07:10 -0500 |
| commit | f4e7afec1e28e7fa2be397a3f3f63b40061f24b7 (patch) | |
| tree | d189a60451f7bda9c8488b35613efe5425c788e9 | |
| parent | 25559139cf5480ccfb1ac180e9038448d5d2410e (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-- | Makefile | 13 |
1 files changed, 12 insertions, 1 deletions
| @@ -73,7 +73,7 @@ all = lib ${rt-apps} | |||
| 73 | rt-apps = cycles base_task rt_launch rtspin release_ts measure_syscall \ | 73 | rt-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 | ||
| 78 | all: ${all} inc/config.makefile | 78 | all: ${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 | ||
| 122 | TAGS: | ||
| 123 | @echo TAGS | ||
| 124 | @find . -type f -and -iname '*.[ch]' | xargs etags | ||
| 125 | |||
| 126 | # Vim Tags | ||
| 127 | tags: | ||
| 128 | @echo tags | ||
| 129 | @find . -type f -and -iname '*.[ch]' | xargs ctags | ||
| 119 | 130 | ||
| 120 | # ############################################################################## | 131 | # ############################################################################## |
| 121 | # Kernel headers. | 132 | # Kernel headers. |
