diff mbox series

[kvm-unit-tests,v9,3/9] Makefile: add GNU global tags support

Message ID 20211202115352.951548-4-alex.bennee@linaro.org (mailing list archive)
State New, archived
Headers show
Series MTTCG sanity tests for ARM | expand

Commit Message

Alex Bennée Dec. 2, 2021, 11:53 a.m. UTC
If you have ctags you might as well offer gtags as a target.

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20211118184650.661575-4-alex.bennee@linaro.org>
---
 Makefile | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

Comments

Andrew Jones Dec. 14, 2021, 11:36 a.m. UTC | #1
On Thu, Dec 02, 2021 at 11:53:46AM +0000, Alex Bennée wrote:
> If you have ctags you might as well offer gtags as a target.
> 
> Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
> Message-Id: <20211118184650.661575-4-alex.bennee@linaro.org>
> ---
>  Makefile | 5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)
> 
> diff --git a/Makefile b/Makefile
> index b80c31f8..0b7c03ac 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -122,6 +122,9 @@ cscope:
>  		-name '*.[chsS]' -exec realpath --relative-base=$(CURDIR) {} \; | sort -u > ./cscope.files
>  	cscope -bk
>  
> -.PHONY: tags
> +.PHONY: tags gtags
>  tags:
>  	ctags -R
> +
> +gtags:
> +	gtags
> -- 
> 2.30.2
>

We should also add gtags' generated files to .gitignore

Thanks,
drew
diff mbox series

Patch

diff --git a/Makefile b/Makefile
index b80c31f8..0b7c03ac 100644
--- a/Makefile
+++ b/Makefile
@@ -122,6 +122,9 @@  cscope:
 		-name '*.[chsS]' -exec realpath --relative-base=$(CURDIR) {} \; | sort -u > ./cscope.files
 	cscope -bk
 
-.PHONY: tags
+.PHONY: tags gtags
 tags:
 	ctags -R
+
+gtags:
+	gtags