summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorBrian Gaeke <gaeke@uiuc.edu>2004-02-10 01:10:01 +0000
committerBrian Gaeke <gaeke@uiuc.edu>2004-02-10 01:10:01 +0000
commit89409b64eb49be12a6f77e4f766ed4f157498851 (patch)
treeac129a48f826e9612e46d9e75a2e5589d346219a /Makefile
parent2647c3925b5344137c6f2373e9d5cd003cbd3a9b (diff)
downloadllvm-89409b64eb49be12a6f77e4f766ed4f157498851.tar.gz
Should fix pr220 - "make install" doesn't install header files when
BUILD_SRC_ROOT != BUILD_OBJ_ROOT git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11253 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 85aa6d7eec7d..7146bfbef52e 100644
--- a/Makefile
+++ b/Makefile
@@ -34,6 +34,9 @@ tools-only: all
install-includes:
$(MKDIR) $(DESTDIR)$(includedir)/llvm
cd include && find * '!' '(' -name '*~' -o -name .cvsignore ')' -print | grep -v CVS | pax -rwdvpe $(DESTDIR)$(includedir)/llvm
+ifneq ($(BUILD_SRC_ROOT),$(BUILD_OBJ_ROOT))
+ cd $(BUILD_SRC_ROOT)/include && find * '!' '(' -name '*~' -o -name .cvsignore ')' -print | grep -v CVS | pax -rwdvpe $(DESTDIR)$(includedir)/llvm
+endif
install:: install-includes