From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MZ8RY-0003X8-7D for qemu-devel@nongnu.org; Thu, 06 Aug 2009 15:16:04 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MZ8RT-0003Lt-0z for qemu-devel@nongnu.org; Thu, 06 Aug 2009 15:16:03 -0400 Received: from [199.232.76.173] (port=48567 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MZ8RS-0003Lq-Qt for qemu-devel@nongnu.org; Thu, 06 Aug 2009 15:15:58 -0400 Received: from smtp.eu.citrix.com ([62.200.22.115]:12032) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MZ8RS-0007ba-Ev for qemu-devel@nongnu.org; Thu, 06 Aug 2009 15:15:58 -0400 From: Bique Alexandre Date: Thu, 6 Aug 2009 20:14:20 +0100 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="Boundary-00=_MuyeKyeZ2KDQr9J" Message-ID: <200908062014.20709.alexandre.bique@citrix.com> Subject: [Qemu-devel] [PATCH 1/1] Makefile: updated the rule TAG List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "qemu-devel@nongnu.org" --Boundary-00=_MuyeKyeZ2KDQr9J Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Better rule TAG: - still works if the build dir is not the src dir - use find instead of *.c block/*.c etc... -- Alexandre Bique --Boundary-00=_MuyeKyeZ2KDQr9J Content-Type: text/x-patch; charset="UTF-8"; name="makefile-tags-rule" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="makefile-tags-rule" diff --git a/Makefile b/Makefile index 2a4b3f3..df5b5c4 100644 --- a/Makefile +++ b/Makefile @@ -300,8 +300,9 @@ endif test speed: all $(MAKE) -C tests $@ +.PHONY: TAGS TAGS: - etags *.[ch] tests/*.[ch] block/*.[ch] hw/*.[ch] + find "$(SRC_PATH)" -name '*.[hc]' -print0 | xargs -0 etags cscope: rm -f ./cscope.* --Boundary-00=_MuyeKyeZ2KDQr9J--