find $GNUSTEP_MAKEFILES

Enable locating the GNUstep makefiles using the various schemes available
(in order of reliability), eventually reaching a hardcoded default.
This commit is contained in:
Jeff Teunissen 2010-09-29 18:46:34 -04:00
parent 19c30497d9
commit 5588d9d782
3 changed files with 17 additions and 0 deletions

View file

@ -1,3 +1,5 @@
include GNUmakefile.find-makefiles
include $(GNUSTEP_MAKEFILES)/common.make include $(GNUSTEP_MAKEFILES)/common.make
# #

View file

@ -1,3 +1,5 @@
include GNUmakefile.find-makefiles
include $(GNUSTEP_MAKEFILES)/common.make include $(GNUSTEP_MAKEFILES)/common.make
BUNDLE_NAME= MapEdit BUNDLE_NAME= MapEdit

View file

@ -0,0 +1,13 @@
# Make sure that GNUSTEP_MAKEFILES is set.
# First, try the "gnustep-config" program which should be in the path somewhere.
# If that fails, try sourcing the GNUstep.conf file (which should be a legal Make fragment).
# Finally, just give up and assume the default value.
ifeq ($(GNUSTEP_MAKEFILES),)
GNUSTEP_MAKEFILES=$(shell gnustep-config --variable=GNUSTEP_MAKEFILES)
ifeq ($(GNUSTEP_MAKEFILES),)
-include /etc/GNUstep/GNUstep.conf
ifeq ($(GNUSTEP_MAKEFILES),)
GNUSTEP_MAKEFILES=/usr/GNUstep/Library/Makefiles
endif
endif
endif