mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] Makefile: add target for gtags
@ 2014-03-05 11:47 Steffen Trumtrar
  2014-03-05 11:55 ` Baruch Siach
  0 siblings, 1 reply; 3+ messages in thread
From: Steffen Trumtrar @ 2014-03-05 11:47 UTC (permalink / raw)
  To: barebox; +Cc: Steffen Trumtrar

The scripts/tags.sh file already supports the generation of gtags with
GNU GLOBAL. The only thing missing is the makefile target to use it.

Copy the setup from the Linux Kernel to allow usage of gtags with barebox.

Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de>
---
 Makefile |    7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/Makefile b/Makefile
index 640e589..502e009 100644
--- a/Makefile
+++ b/Makefile
@@ -353,7 +353,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% \
+			 cscope gtags TAGS tags help %docs check% \
 			 include/generated/version.h headers_% \
 			 kernelrelease kernelversion
 
@@ -986,7 +986,7 @@ MRPROPER_DIRS  += include/config include2 usr/include
 MRPROPER_FILES += .config .config.old include/asm .version .old_version \
                   include/generated/autoconf.h include/generated/version.h      \
                   include/generated/utsrelease.h include/config.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
 #
@@ -1072,6 +1072,7 @@ help:
 	@echo  '  dir/file.ko     - Build module including final link'
 	@echo  '  tags/TAGS	  - Generate tags file for editors'
 	@echo  '  cscope	  - Generate cscope index'
+	@echo  '  gtags	  	  - Generate GNU GLOBAL index'
 	@echo  '                    (default: $(INSTALL_HDR_PATH))'
 	@echo  ''
 	@echo  'Static analysers'
@@ -1114,7 +1115,7 @@ htmldocs: Doxyfile.version
 quiet_cmd_tags = GEN     $@
       cmd_tags = $(CONFIG_SHELL) $(srctree)/scripts/tags.sh $@
 
-tags TAGS cscope: FORCE
+tags TAGS cscope gtags: FORCE
 	$(call cmd,tags)
 
 
-- 
1.7.10.4


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] Makefile: add target for gtags
  2014-03-05 11:47 [PATCH] Makefile: add target for gtags Steffen Trumtrar
@ 2014-03-05 11:55 ` Baruch Siach
  2014-03-05 11:59   ` Steffen Trumtrar
  0 siblings, 1 reply; 3+ messages in thread
From: Baruch Siach @ 2014-03-05 11:55 UTC (permalink / raw)
  To: Steffen Trumtrar; +Cc: barebox

Hi Steffen,

On Wed, Mar 05, 2014 at 12:47:11PM +0100, Steffen Trumtrar wrote:
> The scripts/tags.sh file already supports the generation of gtags with
> GNU GLOBAL. The only thing missing is the makefile target to use it.
> 
> Copy the setup from the Linux Kernel to allow usage of gtags with barebox.

Adding gnu global generated files to top level .gitignore would be nice as 
well. See kernel commit f2ac5e78928bf.

baruch

> Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de>
> ---
>  Makefile |    7 ++++---
>  1 file changed, 4 insertions(+), 3 deletions(-)
> 
> diff --git a/Makefile b/Makefile
> index 640e589..502e009 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -353,7 +353,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% \
> +			 cscope gtags TAGS tags help %docs check% \
>  			 include/generated/version.h headers_% \
>  			 kernelrelease kernelversion
>  
> @@ -986,7 +986,7 @@ MRPROPER_DIRS  += include/config include2 usr/include
>  MRPROPER_FILES += .config .config.old include/asm .version .old_version \
>                    include/generated/autoconf.h include/generated/version.h      \
>                    include/generated/utsrelease.h include/config.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
>  #
> @@ -1072,6 +1072,7 @@ help:
>  	@echo  '  dir/file.ko     - Build module including final link'
>  	@echo  '  tags/TAGS	  - Generate tags file for editors'
>  	@echo  '  cscope	  - Generate cscope index'
> +	@echo  '  gtags	  	  - Generate GNU GLOBAL index'
>  	@echo  '                    (default: $(INSTALL_HDR_PATH))'
>  	@echo  ''
>  	@echo  'Static analysers'
> @@ -1114,7 +1115,7 @@ htmldocs: Doxyfile.version
>  quiet_cmd_tags = GEN     $@
>        cmd_tags = $(CONFIG_SHELL) $(srctree)/scripts/tags.sh $@
>  
> -tags TAGS cscope: FORCE
> +tags TAGS cscope gtags: FORCE
>  	$(call cmd,tags)
>  
>  
> -- 
> 1.7.10.4

-- 
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] Makefile: add target for gtags
  2014-03-05 11:55 ` Baruch Siach
@ 2014-03-05 11:59   ` Steffen Trumtrar
  0 siblings, 0 replies; 3+ messages in thread
From: Steffen Trumtrar @ 2014-03-05 11:59 UTC (permalink / raw)
  To: Baruch Siach; +Cc: barebox

On Wed, Mar 05, 2014 at 01:55:57PM +0200, Baruch Siach wrote:
> Hi Steffen,
> 
> On Wed, Mar 05, 2014 at 12:47:11PM +0100, Steffen Trumtrar wrote:
> > The scripts/tags.sh file already supports the generation of gtags with
> > GNU GLOBAL. The only thing missing is the makefile target to use it.
> > 
> > Copy the setup from the Linux Kernel to allow usage of gtags with barebox.
> 
> Adding gnu global generated files to top level .gitignore would be nice as 
> well. See kernel commit f2ac5e78928bf.

Oops, yeah. Of course. I will add that.

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-03-05 11:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-03-05 11:47 [PATCH] Makefile: add target for gtags Steffen Trumtrar
2014-03-05 11:55 ` Baruch Siach
2014-03-05 11:59   ` Steffen Trumtrar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox