git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC/PATCH] Avoid TAGS/tags warning from GNU Make
@ 2010-09-04  9:03 Jonathan Nieder
  2010-09-04  9:41 ` Matthieu Moy
  0 siblings, 1 reply; 4+ messages in thread
From: Jonathan Nieder @ 2010-09-04  9:03 UTC (permalink / raw)
  To: git; +Cc: Fredrik Kuivinen, Johannes Schindelin

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

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-09-04 16:36 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-04  9:03 [RFC/PATCH] Avoid TAGS/tags warning from GNU Make Jonathan Nieder
2010-09-04  9:41 ` Matthieu Moy
2010-09-04 16:14   ` Junio C Hamano
2010-09-04 16:34     ` Jonathan Nieder

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).