aboutsummaryrefslogtreecommitdiff
path: root/Makefile.config.in
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@apple.com>2011-11-28 07:59:52 +0000
committerBob Wilson <bob.wilson@apple.com>2011-11-28 07:59:52 +0000
commitae7e2a4bbbdfa82b4e2670fccb3a0aed812c3b0a (patch)
treea4936c790e8f93a220d379babfaca3877a126bf1 /Makefile.config.in
parentf86186ee244f3c938d04e0fccfa702410698c47b (diff)
Add an optional separate install prefix for internal components. rdar://10217046
Some files installed by clang are not relevant for general users and we'd like to be able to install them to a different location. This adds a new --with-internal-prefix configure option and a corresponding PROJ_internal_prefix makefile variable, which defaults to the standard prefix. A tool makefile can specify that it should be installed to this internal prefix by defining INTERNAL_TOOL. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@145234 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Makefile.config.in')
-rw-r--r--Makefile.config.in7
1 files changed, 7 insertions, 0 deletions
diff --git a/Makefile.config.in b/Makefile.config.in
index dd948bf1f3..6422559574 100644
--- a/Makefile.config.in
+++ b/Makefile.config.in
@@ -86,6 +86,13 @@ PROJ_VERSION := 1.0
endif
endif
+INTERNAL_PREFIX := @INTERNAL_PREFIX@
+ifneq ($(INTERNAL_PREFIX),)
+PROJ_internal_prefix := $(INTERNAL_PREFIX)
+else
+PROJ_internal_prefix := $(prefix)
+endif
+
PROJ_bindir := $(PROJ_prefix)/bin
PROJ_libdir := $(PROJ_prefix)/lib
PROJ_datadir := $(PROJ_prefix)/share