improve makefile example

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31336 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rfm 2010-09-12 15:44:40 +00:00
parent 46135e9180
commit f4af2099be

View file

@ -99,6 +99,14 @@ The following Makefile defines a project:
# A GNUmakefile
#
# Check that the GNUSTEP_MAKEFILES environment variable is set
ifeq ($(GNUSTEP_MAKEFILES),)
GNUSTEP_MAKEFILES := $(shell gnustep-config --variable=GNUSTEP_MAKEFILES 2>/dev/null)
ifeq ($(GNUSTEP_MAKEFILES),)
$(error You need to set GNUSTEP_MAKEFILES before compiling!)
endif
endif
# Include the common variables
include $(GNUSTEP_MAKEFILES)/common.make