kbuild: add GNU GLOBAL tags generation

GNU GLOBAL (http://www.gnu.org/software/global/) is a source code tagging system
It is really cheap to support it in kbuild system.

Signed-off-by: Jianbin Kang <kjbmail@gmail.com>
Signed-off-by: Michal Marek <mmarek@suse.cz>
This commit is contained in:
Jianbin Kang
2011-01-14 20:07:05 +08:00
committed by Michal Marek
parent 38b3439d84
commit f4ed1009fc
2 changed files with 13 additions and 3 deletions

View File

@@ -114,6 +114,11 @@ docscope()
cscope -b -f cscope.out
}
dogtags()
{
all_sources | gtags -f -
}
exuberant()
{
all_sources | xargs $1 -a \
@@ -185,6 +190,10 @@ case "$1" in
docscope
;;
"gtags")
dogtags
;;
"tags")
rm -f tags
xtags ctags