mirror of
https://github.com/gnustep/tools-make.git
synced 2025-05-05 19:30:55 +00:00
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:
parent
a495c06164
commit
c3af1f9e2e
1 changed files with 13 additions and 0 deletions
13
common.make
13
common.make
|
@ -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
|
||||
#
|
||||
|
|
Loading…
Reference in a new issue