[PATCH] Makefile: Add *.[ch].inc files to cscope/ctags/TAGS

Greg Kurz posted 1 patch 3 years, 6 months ago
Test checkpatch passed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/160257995354.899044.14483032809159561276.stgit@bahia.lan
There is a newer version of this series
Makefile |    2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH] Makefile: Add *.[ch].inc files to cscope/ctags/TAGS
Posted by Greg Kurz 3 years, 6 months ago
The code base has some C source and header files that don't get indexed
because their name ends with .inc:

$ git ls-files "*.[ch].inc" | wc -l
66

Add them to the list.

Signed-off-by: Greg Kurz <groug@kaod.org>
---
 Makefile |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index c37e513431fe..b5003cdb4a43 100644
--- a/Makefile
+++ b/Makefile
@@ -190,7 +190,7 @@ distclean: clean ninja-distclean
 	rm -f linux-headers/asm
 	rm -Rf .sdk
 
-find-src-path = find "$(SRC_PATH)/" -path "$(SRC_PATH)/meson" -prune -o -name "*.[chsS]"
+find-src-path = find "$(SRC_PATH)/" -path "$(SRC_PATH)/meson" -prune -o -name "*.[chsS]" -o -name "*.[ch].inc"
 
 .PHONY: ctags
 ctags:



Re: [PATCH] Makefile: Add *.[ch].inc files to cscope/ctags/TAGS
Posted by Greg Kurz 3 years, 6 months ago
On Tue, 13 Oct 2020 11:05:53 +0200
Greg Kurz <groug@kaod.org> wrote:

> The code base has some C source and header files that don't get indexed
> because their name ends with .inc:
> 
> $ git ls-files "*.[ch].inc" | wc -l
> 66
> 
> Add them to the list.
> 
> Signed-off-by: Greg Kurz <groug@kaod.org>
> ---

>  Makefile |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/Makefile b/Makefile
> index c37e513431fe..b5003cdb4a43 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -190,7 +190,7 @@ distclean: clean ninja-distclean
>  	rm -f linux-headers/asm
>  	rm -Rf .sdk
>  
> -find-src-path = find "$(SRC_PATH)/" -path "$(SRC_PATH)/meson" -prune -o -name "*.[chsS]"
> +find-src-path = find "$(SRC_PATH)/" -path "$(SRC_PATH)/meson" -prune -o -name "*.[chsS]" -o -name "*.[ch].inc"


Crap... I forgot to refresh and this lacks \( and \).

Posting v2 right away.

>  
>  .PHONY: ctags
>  ctags:
> 
> 
>