From 80775a8c87e13c0c9e6cddc54c92e838cd29d557 Mon Sep 17 00:00:00 2001 From: Richard Frith-MacDonald Date: Fri, 10 Sep 2010 13:57:14 +0000 Subject: [PATCH] warn if gnustep-make not found git-svn-id: svn+ssh://svn.gna.org/svn/gnustep@31300 72102866-910b-0410-8b05-ffd578937521 --- GNUmakefile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/GNUmakefile b/GNUmakefile index 3f460ff..0aac3c5 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -20,6 +20,23 @@ # License along with this library; if not, write to the Free # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 USA. +ifeq ($(GNUSTEP_MAKEFILES),) + GNUSTEP_MAKEFILES := $(shell gnustep-config --variable=GNUSTEP_MAKEFILES 2>/dev/null) + ifeq ($(GNUSTEP_MAKEFILES),) + $(warning ) + $(warning Unable to obtain GNUSTEP_MAKEFILES setting from gnustep-config!) + $(warning Perhaps gnustep-make is not properly installed,) + $(warning so gnustep-config is not in your PATH.) + $(warning ) + $(warning Your PATH is currently $(PATH)) + $(warning ) + endif +endif + +ifeq ($(GNUSTEP_MAKEFILES),) + $(error You need to set GNUSTEP_MAKEFILES before compiling!) +endif + include $(GNUSTEP_MAKEFILES)/common.make