From: Fam Zheng <famz@redhat.com>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [PATCH v2 2/2] Makefile: Add "make ctags"
Date: Fri, 22 May 2015 13:35:08 +0800 [thread overview]
Message-ID: <1432272908-8330-3-git-send-email-famz@redhat.com> (raw)
In-Reply-To: <1432272908-8330-1-git-send-email-famz@redhat.com>
This generates ctags file
Signed-off-by: Fam Zheng <famz@redhat.com>
---
Makefile | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index d4515fa..f2efe71 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),)
@@ -437,6 +437,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 $@
--
2.4.1
next prev parent reply other threads:[~2015-05-22 5:35 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-22 5:35 [Qemu-devel] [PATCH v2 0/2] Makefile: Generate tag files under $SRC_PATH Fam Zheng
2015-05-22 5:35 ` [Qemu-devel] [PATCH v2 1/2] Makefile: Fix "make cscope TAGS" Fam Zheng
2015-05-22 5:35 ` Fam Zheng [this message]
2015-06-11 8:41 ` [Qemu-devel] [PATCH v2 0/2] Makefile: Generate tag files under $SRC_PATH Fam Zheng
2015-06-11 18:01 ` John Snow
2015-06-17 19:38 ` Michael Tokarev
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1432272908-8330-3-git-send-email-famz@redhat.com \
--to=famz@redhat.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).