diff mbox series

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

Message ID 160258069310.900922.1495166540282536628.stgit@bahia.lan
State Superseded
Headers show
Series [v2] Makefile: Add *.[ch].inc files to cscope/ctags/TAGS | expand

Commit Message

Greg Kurz Oct. 13, 2020, 9:18 a.m. UTC
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>
--
v2: add the missing \( and \)
---
 Makefile |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Paolo Bonzini Oct. 13, 2020, 10:57 a.m. UTC | #1
On 13/10/20 11:18, Greg Kurz 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>

> --

> v2: add the missing \( and \)

> ---

>  Makefile |    2 +-

>  1 file changed, 1 insertion(+), 1 deletion(-)

> 

> diff --git a/Makefile b/Makefile

> index c37e513431fe..3c5a0b0f7a11 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:

> 

> 


Cc: qemu-trivial@nongnu.org
Laurent Vivier Oct. 26, 2020, 7:18 p.m. UTC | #2
Le 13/10/2020 à 12:57, Paolo Bonzini a écrit :
> On 13/10/20 11:18, Greg Kurz 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>
>> --
>> v2: add the missing \( and \)
>> ---
>>  Makefile |    2 +-
>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/Makefile b/Makefile
>> index c37e513431fe..3c5a0b0f7a11 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:
>>
>>
> 
> Cc: qemu-trivial@nongnu.org
> 
> 

Applied to my trivial-patches branch.

Thanks,
Laurent
diff mbox series

Patch

diff --git a/Makefile b/Makefile
index c37e513431fe..3c5a0b0f7a11 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: