llvm.org GIT mirror llvm / 281722d
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 Reid Spencer 12 years ago
1 changed file(s) with 10 addition(s) and 9 deletion(s). Raw diff Collapse all Expand all
4646 LLVM_OBJ_ROOT := $(shell cd @abs_top_builddir@; $(PWD))
4747 PROJ_SRC_ROOT := $(shell cd $(LLVM_SRC_ROOT); $(PWD))
4848 PROJ_SRC_DIR := $(shell cd $(LLVM_SRC_ROOT)/$(patsubst $(PROJ_OBJ_ROOT)%,%,$(PROJ_OBJ_DIR)); $(PWD))
49 PROJ_prefix := @prefix@
50 PROJ_bindir := @prefix@/bin
51 PROJ_libdir := @prefix@/lib
52 PROJ_datadir := @prefix@/share
53 PROJ_docsdir := @prefix@/docs/llvm
54 PROJ_etcdir := @prefix@/etc/llvm
55 PROJ_includedir := @prefix@/include
56 PROJ_infodir := @prefix@/info
57 PROJ_mandir := @prefix@/man
49 DESTDIR := @prefix@
50 PROJ_prefix := $(DESTDIR)
51 PROJ_bindir := $(DESTDIR)bin
52 PROJ_libdir := $(DESTDIR)lib
53 PROJ_datadir := $(DESTDIR)share
54 PROJ_docsdir := $(DESTDIR)docs/llvm
55 PROJ_etcdir := $(DESTDIR)etc/llvm
56 PROJ_includedir := $(DESTDIR)include
57 PROJ_infodir := $(DESTDIR)info
58 PROJ_mandir := $(DESTDIR)man
5859 PROJ_VERSION := $(LLVMVersion)
5960 else
6061 ifndef PROJ_SRC_ROOT