summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorFam Zheng <famz@redhat.com>2015-05-22 13:35:08 +0800
committerMichael Tokarev <mjt@tls.msk.ru>2015-06-23 20:23:39 +0300
commitae5fdc81a16534ea04fc475f8723e81857c46ad4 (patch)
tree3ac06895224938cdd84905676b7f6af4a395d6e4 /Makefile
parenteaa2ddbb76798ec70d12351c0db43a7728d29150 (diff)
downloadqemu-ae5fdc81a16534ea04fc475f8723e81857c46ad4.tar.gz
qemu-ae5fdc81a16534ea04fc475f8723e81857c46ad4.tar.bz2
qemu-ae5fdc81a16534ea04fc475f8723e81857c46ad4.zip
Makefile: Add "make ctags"
This generates ctags file Signed-off-by: Fam Zheng <famz@redhat.com> Reviewed-by: John Snow <jsnow@redhat.com> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 6 insertions, 1 deletions
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 $@