mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-11 07:42:18 +00:00
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:
parent
19c30497d9
commit
5588d9d782
3 changed files with 17 additions and 0 deletions
|
@ -1,3 +1,5 @@
|
||||||
|
include GNUmakefile.find-makefiles
|
||||||
|
|
||||||
include $(GNUSTEP_MAKEFILES)/common.make
|
include $(GNUSTEP_MAKEFILES)/common.make
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
include GNUmakefile.find-makefiles
|
||||||
|
|
||||||
include $(GNUSTEP_MAKEFILES)/common.make
|
include $(GNUSTEP_MAKEFILES)/common.make
|
||||||
|
|
||||||
BUNDLE_NAME= MapEdit
|
BUNDLE_NAME= MapEdit
|
||||||
|
|
13
tools/Forge/Bundles/MapEdit/GNUmakefile.find-makefiles
Normal file
13
tools/Forge/Bundles/MapEdit/GNUmakefile.find-makefiles
Normal 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
|
Loading…
Reference in a new issue