diff mbox series

[kvm-unit-tests] make: Add tags target and gitignore the tags file

Message ID 20210610113128.5418-1-sidcha@amazon.de (mailing list archive)
State New, archived
Headers show
Series [kvm-unit-tests] make: Add tags target and gitignore the tags file | expand

Commit Message

Siddharth Chandrasekaran June 10, 2021, 11:31 a.m. UTC
Add make target to generate ctags tags file and add it to .gitignore.

Signed-off-by: Siddharth Chandrasekaran <sidcha@amazon.de>
---
 Makefile   | 4 ++++
 .gitignore | 1 +
 2 files changed, 5 insertions(+)

Comments

Paolo Bonzini June 10, 2021, 11:44 a.m. UTC | #1
On 10/06/21 13:31, Siddharth Chandrasekaran wrote:
> Add make target to generate ctags tags file and add it to .gitignore.
> 
> Signed-off-by: Siddharth Chandrasekaran <sidcha@amazon.de>
> ---
>   Makefile   | 4 ++++
>   .gitignore | 1 +
>   2 files changed, 5 insertions(+)
> 
> diff --git a/Makefile b/Makefile
> index e0828fe..017e7d8 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -128,3 +128,7 @@ cscope:
>   	find -L $(cscope_dirs) -maxdepth 1 \
>   		-name '*.[chsS]' -exec realpath --relative-base=$(PWD) {} \; | sort -u > ./cscope.files
>   	cscope -bk
> +
> +.PHONY: tags
> +tags:
> +	ctags -R
> diff --git a/.gitignore b/.gitignore
> index 784cb2d..8534fb7 100644
> --- a/.gitignore
> +++ b/.gitignore
> @@ -1,3 +1,4 @@
> +tags
>   .gdbinit
>   *.a
>   *.d
> 

Queued, thanks.

Paolo
diff mbox series

Patch

diff --git a/Makefile b/Makefile
index e0828fe..017e7d8 100644
--- a/Makefile
+++ b/Makefile
@@ -128,3 +128,7 @@  cscope:
 	find -L $(cscope_dirs) -maxdepth 1 \
 		-name '*.[chsS]' -exec realpath --relative-base=$(PWD) {} \; | sort -u > ./cscope.files
 	cscope -bk
+
+.PHONY: tags
+tags:
+	ctags -R
diff --git a/.gitignore b/.gitignore
index 784cb2d..8534fb7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@ 
+tags
 .gdbinit
 *.a
 *.d