[PATCH] Makefile: add file entry to ctags

Fei Wu posted 1 patch 11 months, 3 weeks ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20230519032716.1477615-1-fei2.wu@intel.com
Maintainers: Paolo Bonzini <pbonzini@redhat.com>, "Alex Bennée" <alex.bennee@linaro.org>, Thomas Huth <thuth@redhat.com>
Makefile | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
[PATCH] Makefile: add file entry to ctags
Posted by Fei Wu 11 months, 3 weeks ago
It's more convenient to jump among files with --extra=+fq.

Signed-off-by: Fei Wu <fei2.wu@intel.com>
---
 Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index 3c7d67142f..ffb3bcd4f4 100644
--- a/Makefile
+++ b/Makefile
@@ -239,8 +239,8 @@ ctags:
 		rm -f "$(SRC_PATH)/"tags, 	\
 		"CTAGS", "Remove old tags")
 	$(call quiet-command, \
-		$(find-src-path) -exec ctags 		\
-		-f "$(SRC_PATH)/"tags --append {} +,	\
+		$(find-src-path) -exec ctags --extra=+fq	\
+		-f "$(SRC_PATH)/"tags --append {} +,		\
 		"CTAGS", "Re-index $(SRC_PATH)")
 
 .PHONY: gtags
-- 
2.25.1