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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Johannes Schindelin <johannes.schindelin@xxxxxx>
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@xxxxxxxxx>
Signed-off-by: Johannes Schindelin <johannes.schindelin@xxxxxx>
Signed-off-by: Jonathan Nieder <jrnieder@xxxxxxxxx>
---
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

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]