]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
Makefile: prune quilt source files for cscope
authorCédric Le Goater <clg@redhat.com>
Mon, 30 Jun 2025 17:20:48 +0000 (19:20 +0200)
committerCédric Le Goater <clg@redhat.com>
Thu, 3 Jul 2025 11:42:28 +0000 (13:42 +0200)
Both quilt, to apply patches, and cscope, to navigate in the code, are
useful tools. Make sure source files that quilt saves when applying
patches are not taken into account when building the cscope database.

Link: https://lore.kernel.org/qemu-devel/20250630172048.519182-1-clg@redhat.com
Signed-off-by: Cédric Le Goater <clg@redhat.com>
Makefile

index c92a3cf7857a51dbda71bf6b4bbe35564e8fc67f..74c2da2037203d812c7a42074343b043af5322e4 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -227,6 +227,7 @@ distclean: clean recurse-distclean
        rm -Rf .sdk qemu-bundle
 
 find-src-path = find "$(SRC_PATH)" -path "$(SRC_PATH)/meson" -prune -o \
+       -path "$(SRC_PATH)/.pc" -prune -o \
        -type l -prune -o \( -name "*.[chsS]" -o -name "*.[ch].inc" \)
 
 .PHONY: ctags