Fix insertion of SelectInsts.
[oota-llvm.git] / Makefile
index 4cbf53a8f07c9893d4745841299461e07856a2c0..7146bfbef52ef6d0e99dcd254b1ffd90a8b7a539 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -32,8 +32,11 @@ tools-only: all
 .PHONY: install-includes
 
 install-includes:
-       $(MKDIR) $(includedir)/llvm
+       $(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