From: Fam Zheng Date: Fri, 22 May 2015 05:35:08 +0000 (+0800) Subject: Makefile: Add "make ctags" X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=ae5fdc81a16534ea04fc475f8723e81857c46ad4;p=qemu.git Makefile: Add "make ctags" This generates ctags file Signed-off-by: Fam Zheng Reviewed-by: John Snow Signed-off-by: Michael Tokarev --- diff --git a/Makefile b/Makefile index ea0b29239b..c9be643ae3 100644 --- a/Makefile +++ b/Makefile @@ -6,7 +6,7 @@ BUILD_DIR=$(CURDIR) # Before including a proper config-host.mak, assume we are in the source tree SRC_PATH=. -UNCHECKED_GOALS := %clean TAGS cscope +UNCHECKED_GOALS := %clean TAGS cscope ctags # All following code might depend on configuration variables ifneq ($(wildcard config-host.mak),) @@ -454,6 +454,11 @@ endif test speed: all $(MAKE) -C tests/tcg $@ +.PHONY: ctags +ctags: + rm -f $@ + find "$(SRC_PATH)" -name '*.[hc]' -exec ctags --append {} + + .PHONY: TAGS TAGS: rm -f $@