diff options
author | Sam Ravnborg <sam@mars.(none)> | 2005-07-28 17:11:34 -0400 |
---|---|---|
committer | Sam Ravnborg <sam@mars.(none)> | 2005-07-28 17:11:34 -0400 |
commit | 66d609ec8a4464b5fbe7a0723e3958b98c95991a (patch) | |
tree | 5e888e7ffbd70a82c9345ea51d83cb163db27d5d | |
parent | 49490571bcfe24d279a66ba24198e8ba299fe58f (diff) |
kbuild: fix make TAGS (for emacs use)
From: bongiojp@clarkson.edu <Jeremy Bongio>
make TAGS does not make source code tags for emacs. It instead
returns an error than "etags -" isn't valid. The problem is
easily remedied.
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
-rw-r--r-- | Makefile | 13 |
1 files changed, 8 insertions, 5 deletions
@@ -1203,9 +1203,15 @@ cscope: FORCE | |||
1203 | $(call cmd,cscope) | 1203 | $(call cmd,cscope) |
1204 | 1204 | ||
1205 | quiet_cmd_TAGS = MAKE $@ | 1205 | quiet_cmd_TAGS = MAKE $@ |
1206 | cmd_TAGS = $(all-sources) | etags - | 1206 | define cmd_TAGS |
1207 | rm -f $@; \ | ||
1208 | ETAGSF=`etags --version | grep -i exuberant >/dev/null && echo "-I __initdata,__exitdata,EXPORT_SYMBOL,EXPORT_SYMBOL_GPL --extra=+f"`; \ | ||
1209 | $(all-sources) | xargs etags $$ETAGSF -a | ||
1210 | endef | ||
1211 | |||
1212 | TAGS: FORCE | ||
1213 | $(call cmd,TAGS) | ||
1207 | 1214 | ||
1208 | # Exuberant ctags works better with -I | ||
1209 | 1215 | ||
1210 | quiet_cmd_tags = MAKE $@ | 1216 | quiet_cmd_tags = MAKE $@ |
1211 | define cmd_tags | 1217 | define cmd_tags |
@@ -1214,9 +1220,6 @@ define cmd_tags | |||
1214 | $(all-sources) | xargs ctags $$CTAGSF -a | 1220 | $(all-sources) | xargs ctags $$CTAGSF -a |
1215 | endef | 1221 | endef |
1216 | 1222 | ||
1217 | TAGS: FORCE | ||
1218 | $(call cmd,TAGS) | ||
1219 | |||
1220 | tags: FORCE | 1223 | tags: FORCE |
1221 | $(call cmd,tags) | 1224 | $(call cmd,tags) |
1222 | 1225 | ||