Should fix pr220 - "make install" doesn't install header files when
authorBrian Gaeke <gaeke@uiuc.edu>
Tue, 10 Feb 2004 01:10:01 +0000 (01:10 +0000)
committerBrian Gaeke <gaeke@uiuc.edu>
Tue, 10 Feb 2004 01:10:01 +0000 (01:10 +0000)
BUILD_SRC_ROOT != BUILD_OBJ_ROOT

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11253 91177308-0d34-0410-b5e6-96231b3b80d8

Makefile

index 85aa6d7eec7d4d7290dda8b65fe74f8bd702a4a9..7146bfbef52ef6d0e99dcd254b1ffd90a8b7a539 100644 (file)
--- 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