Support DESTDIR

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/tools/make/trunk@23774 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Nicola Pero 2006-10-06 08:06:19 +00:00
parent c16e923759
commit bbcf517037
2 changed files with 14 additions and 0 deletions

View file

@ -1,3 +1,9 @@
2006-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
Implemented DESTDIR as per GNU Coding Standards.
* common.make (GNUSTEP_INSTALLATION_DIR): if a DESTDIR is defined,
prefix GNUSTEP_INSTALLATION_DIR with it.
2006-10-03 Nicola Pero <nicola.pero@meta-innovation.com>
Removed support for library_paths.openapp. It was not available

View file

@ -163,6 +163,14 @@ ifeq ($(GNUSTEP_INSTALLATION_DIR),)
GNUSTEP_INSTALLATION_DIR = $(GNUSTEP_LOCAL_ROOT)
endif
#
# DESTDIR allows you to relocate the entire installation somewhere else
# (as per GNU Coding Standards).
#
ifneq ($(DESTDIR),)
override GNUSTEP_INSTALLATION_DIR := $(DESTDIR)/$(GNUSTEP_INSTALLATION_DIR)
endif
# Make it public and available to all submakes invocations
export GNUSTEP_INSTALLATION_DIR