From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42671) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bB4EI-0000QB-S1 for qemu-devel@nongnu.org; Thu, 09 Jun 2016 13:58:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bB4EB-0004jx-U5 for qemu-devel@nongnu.org; Thu, 09 Jun 2016 13:58:52 -0400 Received: from mail-lf0-x231.google.com ([2a00:1450:4010:c07::231]:35976) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bB4EB-0004jr-Ly for qemu-devel@nongnu.org; Thu, 09 Jun 2016 13:58:47 -0400 Received: by mail-lf0-x231.google.com with SMTP id j5so31267565lfb.3 for ; Thu, 09 Jun 2016 10:58:47 -0700 (PDT) From: Sergey Fedorov Date: Thu, 9 Jun 2016 20:58:35 +0300 Message-Id: <1465495115-24665-1-git-send-email-sergey.fedorov@linaro.org> Subject: [Qemu-devel] [PATCH] Makefile: Fix tag file generation targets List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: qemu-trivial@nongnu.org, patches@linaro.org, Sergey Fedorov , Sergey Fedorov , Michael Roth , Paolo Bonzini , "Daniel P. Berrange" , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , Michael Tokarev From: Sergey Fedorov "ctags" produces a file named "tags", not "ctags". It doesn't look reasonable to use phony target name as a file name to remove. Just use exact file names to remove in "ctags" and "TAGS" target receipts. Signed-off-by: Sergey Fedorov Signed-off-by: Sergey Fedorov --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index b8563db68677..61bf1bf9e2bb 100644 --- a/Makefile +++ b/Makefile @@ -478,12 +478,12 @@ test speed: all .PHONY: ctags ctags: - rm -f $@ + rm -f tags find "$(SRC_PATH)" -name '*.[hc]' -exec ctags --append {} + .PHONY: TAGS TAGS: - rm -f $@ + rm -f TAGS find "$(SRC_PATH)" -name '*.[hc]' -exec etags --append {} + cscope: -- 1.9.1