From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40751) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yvfc6-0008BA-AL for qemu-devel@nongnu.org; Fri, 22 May 2015 01:35:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yvfc5-0007e4-C6 for qemu-devel@nongnu.org; Fri, 22 May 2015 01:35:18 -0400 Received: from mx1.redhat.com ([209.132.183.28]:37533) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yvfc5-0007dj-5b for qemu-devel@nongnu.org; Fri, 22 May 2015 01:35:17 -0400 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id t4M5ZG9E023495 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Fri, 22 May 2015 01:35:16 -0400 Received: from ad.nay.redhat.com (dhcp-14-155.nay.redhat.com [10.66.14.155]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t4M5Z9sG003162 for ; Fri, 22 May 2015 01:35:15 -0400 From: Fam Zheng Date: Fri, 22 May 2015 13:35:08 +0800 Message-Id: <1432272908-8330-3-git-send-email-famz@redhat.com> In-Reply-To: <1432272908-8330-1-git-send-email-famz@redhat.com> References: <1432272908-8330-1-git-send-email-famz@redhat.com> Subject: [Qemu-devel] [PATCH v2 2/2] Makefile: Add "make ctags" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org This generates ctags file Signed-off-by: Fam Zheng --- 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