aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Kacur <jkacur@rogers.com>2005-10-29 00:25:13 -0400
committerSam Ravnborg <sam@mars.ravnborg.org>2005-12-25 15:29:38 -0500
commitf6333eb4e788bf70d6455c9004b6b676df62c500 (patch)
treeae2d734b1f777470905fd1e4d25475b6b0b39ab4
parent9572b28faf72859c6b91891c627870cfa282d19d (diff)
kbuild: Add ctags support for function prototypes and external variable declarations
This patch adds function prototypes and external variable declarations to the set of tag kinds when running ctags. I find this useful when perusing the kernel. Please apply. Signed-off-by: John Kacur <jkacur@rogers.com> Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
-rw-r--r--Makefile12
1 files changed, 8 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 5f685b989165..ced03463ba5d 100644
--- a/Makefile
+++ b/Makefile
@@ -1236,8 +1236,10 @@ cscope: FORCE
1236quiet_cmd_TAGS = MAKE $@ 1236quiet_cmd_TAGS = MAKE $@
1237define cmd_TAGS 1237define cmd_TAGS
1238 rm -f $@; \ 1238 rm -f $@; \
1239 ETAGSF=`etags --version | grep -i exuberant >/dev/null && echo "-I __initdata,__exitdata,EXPORT_SYMBOL,EXPORT_SYMBOL_GPL --extra=+f"`; \ 1239 ETAGSF=`etags --version | grep -i exuberant >/dev/null && \
1240 $(all-sources) | xargs etags $$ETAGSF -a 1240 echo "-I __initdata,__exitdata,EXPORT_SYMBOL,EXPORT_SYMBOL_GPL \
1241 --extra=+f --c-kinds=+px"`; \
1242 $(all-sources) | xargs etags $$ETAGSF -a
1241endef 1243endef
1242 1244
1243TAGS: FORCE 1245TAGS: FORCE
@@ -1247,8 +1249,10 @@ TAGS: FORCE
1247quiet_cmd_tags = MAKE $@ 1249quiet_cmd_tags = MAKE $@
1248define cmd_tags 1250define cmd_tags
1249 rm -f $@; \ 1251 rm -f $@; \
1250 CTAGSF=`ctags --version | grep -i exuberant >/dev/null && echo "-I __initdata,__exitdata,EXPORT_SYMBOL,EXPORT_SYMBOL_GPL --extra=+f"`; \ 1252 CTAGSF=`ctags --version | grep -i exuberant >/dev/null && \
1251 $(all-sources) | xargs ctags $$CTAGSF -a 1253 echo "-I __initdata,__exitdata,EXPORT_SYMBOL,EXPORT_SYMBOL_GPL \
1254 --extra=+f --c-kinds=+px"`; \
1255 $(all-sources) | xargs ctags $$CTAGSF -a
1252endef 1256endef
1253 1257
1254tags: FORCE 1258tags: FORCE