git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[RFC/PATCH] Avoid TAGS/tags warning from GNU Make

From
Jonathan Nieder <jrnieder@gmail.com>
Date
Sep 4, 2010, 09:03 UTC
Message-ID
<20100904090331.GA10903@burratino>
From: Johannes Schindelin <johannes.schindelin@gmx.de>
Date: Thu, 22 Oct 2009 19:04:17 +0200

MinGW make considers the TAGS and tags targets to refer to the same file:

 Makefile: warning: overriding commands for target `TAGS'
 Makefile: warning: ignoring old commands for target `TAGS'
Suppress both targets on that platform.
Cc: Fredrik Kuivinen <frekui@gmail.com>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
---
This is kind of ugly; I hope there is a better way.  Maybe mingw
make ought to special-case the TAGS name, since this has come up in
other projects[1], too.
[1] e.g., http://thread.gmane.org/gmane.comp.video.mplayer.devel/51542/focus=51545
 Makefile |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/Makefile b/Makefile
index 40fbcae..a1d4550 100644
--- a/Makefile
+++ b/Makefile
@@ -1952,6 +1952,7 @@ info:
 pdf:
 	$(MAKE) -C Documentation pdf
 
+ifeq (,$(findstring MINGW,$(uname_S)))
 TAGS:
 	$(RM) TAGS
 	$(FIND) . -name '*.[hcS]' -print | xargs etags -a
@@ -1959,6 +1960,7 @@ TAGS:
 tags:
 	$(RM) tags
 	$(FIND) . -name '*.[hcS]' -print | xargs ctags -a
+endif
 
 cscope:
 	$(RM) cscope*
-- 
1.7.2.3
Next: Matthieu Moy
Message 1 of 4 in “Avoid TAGS/tags warning from GNU Make”
  1. Avoid TAGS/tags warning from GNU MakeJonathan Nieder, Sep 4, 2010
  2. Matthieu MoySep 4, 2010
  3. Junio C HamanoSep 4, 2010
  4. Jonathan NiederSep 4, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.