]> git.proxmox.com Git - mirror_qemu.git/blobdiff - Makefile
hw/arm/pxa2xx: Add missing fallthrough comment
[mirror_qemu.git] / Makefile
index d6c5c9fdef1a915dfc9f5a6448978aaa3d56a954..2ed19310cf74b23c0d7df921ed0bcbf9ffbe022f 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -128,7 +128,7 @@ build.ninja: config-host.mak
 Makefile: ;
 configure: ;
 
-.PHONY: all clean cscope distclean install \
+.PHONY: all clean distclean install \
        recurse-all dist msi FORCE
 
 SUBDIR_MAKEFLAGS=$(if $(V),,--no-print-directory --quiet)
@@ -221,20 +221,22 @@ 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]"
+
 .PHONY: ctags
 ctags:
        rm -f tags
-       find "$(SRC_PATH)" -name '*.[hc]' -exec ctags --append {} +
+       $(find-src-path) -exec ctags --append {} +
 
 .PHONY: TAGS
 TAGS:
        rm -f TAGS
-       find "$(SRC_PATH)" -name '*.[hc]' -exec etags --append {} +
+       $(find-src-path) -exec etags --append {} +
 
 .PHONY: cscope
 cscope:
        rm -f "$(SRC_PATH)"/cscope.*
-       find "$(SRC_PATH)/" -name "*.[chsS]" -print | sed -e 's,^\./,,' > "$(SRC_PATH)/cscope.files"
+       $(find-src-path) -print | sed -e 's,^\./,,' > "$(SRC_PATH)/cscope.files"
        cscope -b -i"$(SRC_PATH)/cscope.files"
 
 # Needed by "meson install"