Warn the user if PATH is not correctly set up.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/tools/make/trunk@9437 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Nicola Pero 2001-03-18 16:30:43 +00:00
parent a495c06164
commit c3af1f9e2e

View file

@ -55,6 +55,19 @@ ifeq ($(GNUSTEP_MAKEFILES),)
GNUSTEP_MAKEFILES = $(GNUSTEP_SYSTEM_ROOT)/Makefiles
endif
# Sanity check on $PATH - NB: if PATH is wrong, we can't do anything
# as we can't run the tools (not even using opentool as we can't even
# run opentool if PATH is wrong)
ifeq ($(MAKELEVEL),0)
ifeq ($(findstring $(GNUSTEP_SYSTEM_ROOT)/Tools,$(PATH)),)
$(warning WARNING - Your PATH is not set up correctly !)
$(warning You need to run the GNUstep configuration script to fix this)
# Well - hopefully if we (common.make) has been found, we can trust that
# at least $(GNUSTEP_MAKEFILES) is set up correctly :-)
$(warning try running ". $(GNUSTEP_MAKEFILES)/GNUstep.sh")
endif
endif
#
# Determine the compilation host and target
#