From: Michal Marek <mmarek@suse.cz>
To: Jianbin Kang <kjbmail@gmail.com>
Cc: linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org
Subject: Re: [PATCH] kbuild: add global tags generation (fixed signed-off-by)
Date: Fri, 14 Jan 2011 12:08:36 +0100 [thread overview]
Message-ID: <4D302EB4.7000005@suse.cz> (raw)
In-Reply-To: <AANLkTi=BPra1SJ3BHN0L1e6L9MKj3EJ0agjaA+m7CkGj@mail.gmail.com>
On 14.1.2011 10:56, Jianbin Kang wrote:
> kbuild: add 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>
>
> diff --git a/Makefile b/Makefile
> index 74b2555..127a371 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -420,7 +420,7 @@ endif
> # of make so .config is not included in this case either (for *config).
>
> no-dot-config-targets := clean mrproper distclean \
> - cscope TAGS tags help %docs check% coccicheck \
> + cscope gtags TAGS tags help %docs check% coccicheck \
> include/linux/version.h headers_% \
> kernelversion %src-pkg
>
> @@ -1134,7 +1134,7 @@ CLEAN_FILES += vmlinux System.map \
> MRPROPER_DIRS += include/config usr/include include/generated
> MRPROPER_FILES += .config .config.old .version .old_version \
> include/linux/version.h \
> - Module.symvers tags TAGS cscope*
> + Module.symvers tags TAGS cscope* GPATH GTAGS GRTAGS GSYMS
>
> # clean - Delete most, but leave enough to build external modules
> #
> @@ -1221,6 +1221,7 @@ help:
> @echo ' modules_prepare - Set up for building external modules'
> @echo ' tags/TAGS - Generate tags file for editors'
> @echo ' cscope - Generate cscope index'
> + @echo ' gtags - Generate global index'
"global index" is not clear to someone who does not know about GNU
global, could you change it to "Generate to GNU global index"?
Michal
> @echo ' kernelrelease - Output the release version string'
> @echo ' kernelversion - Output the version stored in Makefile'
> @echo ' headers_install - Install sanitised kernel headers to
> INSTALL_HDR_PATH'; \
> @@ -1379,7 +1380,7 @@ clean: $(clean-dirs)
> quiet_cmd_tags = GEN $@
> cmd_tags = $(CONFIG_SHELL) $(srctree)/scripts/tags.sh $@
>
> -tags TAGS cscope: FORCE
> +tags TAGS cscope gtags: FORCE
> $(call cmd,tags)
>
> # Scripts to check various things for consistency
> diff --git a/scripts/tags.sh b/scripts/tags.sh
> index bbbe584..0a64ea4 100755
> --- a/scripts/tags.sh
> +++ b/scripts/tags.sh
> @@ -114,6 +114,11 @@ docscope()
> cscope -b -f cscope.out
> }
>
> +dogtags()
> +{
> + all_sources | gtags -f -
> +}
> +
> exuberant()
> {
> all_sources | xargs $1 -a \
> @@ -187,6 +192,10 @@ case "$1" in
> docscope
> ;;
>
> + "gtags")
> + dogtags
> + ;;
> +
> "tags")
> rm -f tags
> xtags ctags
next prev parent reply other threads:[~2011-01-14 11:08 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-14 9:56 [PATCH] kbuild: add global tags generation (fixed signed-off-by) Jianbin Kang
2011-01-14 11:08 ` Michal Marek [this message]
2011-01-14 11:56 ` Jianbin Kang
2011-01-14 12:00 ` Michal Marek
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4D302EB4.7000005@suse.cz \
--to=mmarek@suse.cz \
--cc=kjbmail@gmail.com \
--cc=linux-kbuild@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.