quakeforge/tools/Forge/Bundles/MapEdit/GNUmakefile.find-makefiles
Jeff Teunissen edf5f6e018 find $GNUSTEP_MAKEFILES
Enable locating the GNUstep makefiles using the various schemes available
(in order of reliability), eventually reaching a hardcoded default.
2010-11-28 15:31:38 +09:00

13 lines
531 B
Text

# 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