[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