From d489408fe4e4b3e35a8303a7883047f115ba64d8 Mon Sep 17 00:00:00 2001 From: Richard Frith-Macdonald Date: Mon, 11 Mar 2002 14:49:21 +0000 Subject: [PATCH] Remove warning under mingw git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/tools/make/trunk@13082 72102866-910b-0410-8b05-ffd578937521 --- common.make | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/common.make b/common.make index e0b692b4..8bab38db 100644 --- a/common.make +++ b/common.make @@ -123,21 +123,19 @@ ifneq ($(FOUNDATION_LIB),nx) # We want to check that this path is in the PATH SYS_TOOLS_PATH = $(GNUSTEP_SYSTEM_ROOT)/Tools -# But on windows we might need to first fix it up ... -ifeq ($(findstring mingw, $(GNUSTEP_HOST_OS)), mingw) - ifeq ($(shell echo "$(SYS_TOOLS_PATH)" | sed 's/^\([a-zA-Z]:.*\)//'),) - SYS_TOOLS_PATH := $(shell $(GNUSTEP_MAKEFILES)/fixpath.sh -u $(SYS_TOOLS_PATH)) - endif -endif +# But on cygwin we might need to first fix it up ... ifeq ($(findstring cygwin, $(GNUSTEP_HOST_OS)), cygwin) ifeq ($(shell echo "$(SYS_TOOLS_PATH)" | sed 's/^\([a-zA-Z]:.*\)//'),) SYS_TOOLS_PATH := $(shell $(GNUSTEP_MAKEFILES)/fixpath.sh -u $(SYS_TOOLS_PATH)) endif endif -ifeq ($(findstring $(SYS_TOOLS_PATH),$(PATH)),) - $(warning WARNING: Your PATH may not be set up correctly !) - $(warning Please try again after running ". $(GNUSTEP_MAKEFILES)/GNUstep.sh") +# Under mingw paths are so confused this warning is not worthwhile +ifneq ($(findstring mingw, $(GNUSTEP_HOST_OS)), mingw) + ifeq ($(findstring $(SYS_TOOLS_PATH),$(PATH)),) + $(warning WARNING: Your PATH may not be set up correctly !) + $(warning Please try again after running ". $(GNUSTEP_MAKEFILES)/GNUstep.sh") + endif endif endif # code used when FOUNDATION_LIB != nx