diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2006-12-10 04:09:19 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2006-12-10 04:09:19 +0000 |
commit | 281722dab8b89e0956136aa38ac8314cd2f42ff6 (patch) | |
tree | 77f734dc76bef360b38bf53728358747c401190f /Makefile.config.in | |
parent | 796cbd87b497ef5d27815530736babc4cf946de6 (diff) |
For PR739:
Define a DESTDIR variable and use it to define the various install
locations. This allows DESTDIR to be overridden on the command line.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32409 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Makefile.config.in')
-rw-r--r-- | Makefile.config.in | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/Makefile.config.in b/Makefile.config.in index f7642c2117..6154d74f37 100644 --- a/Makefile.config.in +++ b/Makefile.config.in @@ -47,15 +47,16 @@ LLVM_SRC_ROOT := $(shell cd @abs_top_srcdir@; $(PWD)) LLVM_OBJ_ROOT := $(shell cd @abs_top_builddir@; $(PWD)) PROJ_SRC_ROOT := $(shell cd $(LLVM_SRC_ROOT); $(PWD)) PROJ_SRC_DIR := $(shell cd $(LLVM_SRC_ROOT)/$(patsubst $(PROJ_OBJ_ROOT)%,%,$(PROJ_OBJ_DIR)); $(PWD)) -PROJ_prefix := @prefix@ -PROJ_bindir := @prefix@/bin -PROJ_libdir := @prefix@/lib -PROJ_datadir := @prefix@/share -PROJ_docsdir := @prefix@/docs/llvm -PROJ_etcdir := @prefix@/etc/llvm -PROJ_includedir := @prefix@/include -PROJ_infodir := @prefix@/info -PROJ_mandir := @prefix@/man +DESTDIR := @prefix@ +PROJ_prefix := $(DESTDIR) +PROJ_bindir := $(DESTDIR)bin +PROJ_libdir := $(DESTDIR)lib +PROJ_datadir := $(DESTDIR)share +PROJ_docsdir := $(DESTDIR)docs/llvm +PROJ_etcdir := $(DESTDIR)etc/llvm +PROJ_includedir := $(DESTDIR)include +PROJ_infodir := $(DESTDIR)info +PROJ_mandir := $(DESTDIR)man PROJ_VERSION := $(LLVMVersion) else ifndef PROJ_SRC_ROOT |