summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@apple.com>2012-09-21 20:49:54 +0000
committerBob Wilson <bob.wilson@apple.com>2012-09-21 20:49:54 +0000
commit3c6fefdf44ad3ece8de1bf01189e4ac5ffe150e6 (patch)
treecf36907b85b8868bfdf360614c1c1877ca95c522 /Makefile
parent2d3f4ee99f5672564b1914f112659a3a079f1118 (diff)
downloadexternal_libcxx-3c6fefdf44ad3ece8de1bf01189e4ac5ffe150e6.tar.gz
external_libcxx-3c6fefdf44ad3ece8de1bf01189e4ac5ffe150e6.tar.bz2
external_libcxx-3c6fefdf44ad3ece8de1bf01189e4ac5ffe150e6.zip
Fix installheaders target to do what it did prior to r161760. rdar://12348765
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@164413 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index f8ea8bca9..182dcc3b0 100644
--- a/Makefile
+++ b/Makefile
@@ -30,7 +30,16 @@ installsrc:: $(SRCROOT)
clean::
+# The installheaders target is used by clang's runtime/libcxx makefile.
installheaders::
+ mkdir -p $(HEADER_DIR)/c++/v1/ext
+ rsync -r --exclude=".*" --exclude="support" $(SRCDIRS)/include/* \
+ $(HEADER_DIR)/c++/v1/
+ chown -R root:wheel $(HEADER_DIR)/c++
+ chmod 755 $(HEADER_DIR)/c++/v1
+ chmod 644 $(HEADER_DIR)/c++/v1/*
+ chmod 755 $(HEADER_DIR)/c++/v1/ext
+ chmod 644 $(HEADER_DIR)/c++/v1/ext/*
install::