c6833e1
From 01c48a60e0a3bcd2e4d6829f2f0186d4ee6ef504 Mon Sep 17 00:00:00 2001
c6833e1
From: Erick Tryzelaar <erickt@pixar.com>
c6833e1
Date: Fri, 21 Aug 2009 12:37:18 -0700
c6833e1
Subject: [PATCH] Use LLVM's new DESTDIR-less PROJ_* variables.
c6833e1
MIME-Version: 1.0
c6833e1
Content-Type: multipart/mixed; boundary="------------1.6.4"
c6833e1
c6833e1
This is a multi-part message in MIME format.
c6833e1
--------------1.6.4
c6833e1
Content-Type: text/plain; charset=UTF-8; format=fixed
c6833e1
Content-Transfer-Encoding: 8bit
c6833e1
c6833e1
---
c6833e1
 docs/Makefile           |   18 +++++++++---------
c6833e1
 docs/tools/Makefile     |    6 +++---
c6833e1
 tools/clang-cc/Makefile |    2 +-
c6833e1
 3 files changed, 13 insertions(+), 13 deletions(-)
c6833e1
c6833e1
c6833e1
--------------1.6.4
c6833e1
Content-Type: text/x-patch; name="0001-Use-LLVM-s-new-DESTDIR-less-PROJ_-variables.patch"
c6833e1
Content-Transfer-Encoding: 8bit
c6833e1
Content-Disposition: attachment; filename="0001-Use-LLVM-s-new-DESTDIR-less-PROJ_-variables.patch"
c6833e1
c6833e1
diff --git docs/Makefile docs/Makefile
c6833e1
index 9b706c7..e9bbb28 100644
c6833e1
--- docs/Makefile
c6833e1
+++ docs/Makefile
c6833e1
@@ -48,11 +48,11 @@ generated:: doxygen
c6833e1
 
c6833e1
 install-html: $(PROJ_OBJ_DIR)/html.tar.gz
c6833e1
 	$(Echo) Installing HTML documentation
c6833e1
-	$(Verb) $(MKDIR) $(PROJ_docsdir)/html
c6833e1
-	$(Verb) $(MKDIR) $(PROJ_docsdir)/html/img
c6833e1
-	$(Verb) $(DataInstall) $(HTML) $(PROJ_docsdir)/html
c6833e1
-#	$(Verb) $(DataInstall) $(IMAGES) $(PROJ_docsdir)/html/img
c6833e1
-	$(Verb) $(DataInstall) $(PROJ_OBJ_DIR)/html.tar.gz $(PROJ_docsdir)
c6833e1
+	$(Verb) $(MKDIR) $(DESTDIR)$(PROJ_docsdir)/html
c6833e1
+	$(Verb) $(MKDIR) $(DESTDIR)$(PROJ_docsdir)/html/img
c6833e1
+	$(Verb) $(DataInstall) $(HTML) $(DESTDIR)$(PROJ_docsdir)/html
c6833e1
+#	$(Verb) $(DataInstall) $(IMAGES) $(DESTDIR)$(PROJ_docsdir)/html/img
c6833e1
+	$(Verb) $(DataInstall) $(PROJ_OBJ_DIR)/html.tar.gz $(DESTDIR)$(PROJ_docsdir)
c6833e1
 
c6833e1
 $(PROJ_OBJ_DIR)/html.tar.gz: $(HTML)
c6833e1
 	$(Echo) Packaging HTML documentation
c6833e1
@@ -63,11 +63,11 @@ $(PROJ_OBJ_DIR)/html.tar.gz: $(HTML)
c6833e1
 
c6833e1
 install-doxygen: doxygen
c6833e1
 	$(Echo) Installing doxygen documentation
c6833e1
-	$(Verb) $(MKDIR) $(PROJ_docsdir)/html/doxygen
c6833e1
-	$(Verb) $(DataInstall) $(PROJ_OBJ_DIR)/doxygen.tar.gz $(PROJ_docsdir)
c6833e1
+	$(Verb) $(MKDIR) $(DESTDIR)$(PROJ_docsdir)/html/doxygen
c6833e1
+	$(Verb) $(DataInstall) $(PROJ_OBJ_DIR)/doxygen.tar.gz $(DESTDIR)$(PROJ_docsdir)
c6833e1
 	$(Verb) cd $(PROJ_OBJ_DIR)/doxygen && \
c6833e1
 	  $(FIND) . -type f -exec \
c6833e1
-	    $(DataInstall) {} $(PROJ_docsdir)/html/doxygen \;
c6833e1
+	    $(DataInstall) {} $(DESTDIR)$(PROJ_docsdir)/html/doxygen \;
c6833e1
 
c6833e1
 doxygen: regendoc $(PROJ_OBJ_DIR)/doxygen.tar.gz
c6833e1
 
c6833e1
@@ -94,4 +94,4 @@ $(LLVM_SRC_ROOT)/docs/userloc.html:
c6833e1
 
c6833e1
 uninstall-local::
c6833e1
 	$(Echo) Uninstalling Documentation
c6833e1
-	$(Verb) $(RM) -rf $(PROJ_docsdir)
c6833e1
+	$(Verb) $(RM) -rf $(DESTDIR)$(PROJ_docsdir)
c6833e1
diff --git docs/tools/Makefile docs/tools/Makefile
c6833e1
index 90eb776..8107754 100644
c6833e1
--- docs/tools/Makefile
c6833e1
+++ docs/tools/Makefile
c6833e1
@@ -81,9 +81,9 @@ EXTRA_DIST := $(POD)
c6833e1
 clean-local::
c6833e1
 	$(Verb) $(RM) -f pod2htm*.*~~ $(HTML) $(MAN) $(PS)
c6833e1
 
c6833e1
-HTML_DIR := $(PROJ_docsdir)/html/clang
c6833e1
-MAN_DIR  := $(PROJ_mandir)/man1
c6833e1
-PS_DIR   := $(PROJ_docsdir)/ps
c6833e1
+HTML_DIR := $(DESTDIR)$(PROJ_docsdir)/html/clang
c6833e1
+MAN_DIR  := $(DESTDIR)$(PROJ_mandir)/man1
c6833e1
+PS_DIR   := $(DESTDIR)$(PROJ_docsdir)/ps
c6833e1
 
c6833e1
 install-html:: $(HTML)
c6833e1
 	$(Echo) Installing HTML Clang Tools Documentation
c6833e1
diff --git tools/clang-cc/Makefile tools/clang-cc/Makefile
c6833e1
index 874a42f..7c31f37 100644
c6833e1
--- tools/clang-cc/Makefile
c6833e1
+++ tools/clang-cc/Makefile
c6833e1
@@ -27,6 +27,6 @@ USEDLIBS = clangFrontend.a clangCodeGen.a clangAnalysis.a 	\
c6833e1
 
c6833e1
 # clang-cc lives in a special location; we can get away with this
c6833e1
 # because nothing else gets installed from here.
c6833e1
-PROJ_bindir := $(DESTDIR)$(PROJ_prefix)/libexec
c6833e1
+PROJ_bindir := $(PROJ_prefix)/libexec
c6833e1
 
c6833e1
 include $(LLVM_SRC_ROOT)/Makefile.rules
c6833e1
c6833e1
--------------1.6.4--
c6833e1
c6833e1