146d4c2bc3267f3f028f39e7e311b0f89aba2e4fdTorne (Richard Coles)##===- clang/runtime/libcxx/Makefile -----------------------*- Makefile -*-===##
246d4c2bc3267f3f028f39e7e311b0f89aba2e4fdTorne (Richard Coles)#
346d4c2bc3267f3f028f39e7e311b0f89aba2e4fdTorne (Richard Coles)#                     The LLVM Compiler Infrastructure
446d4c2bc3267f3f028f39e7e311b0f89aba2e4fdTorne (Richard Coles)#
5116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch# This file is distributed under the University of Illinois Open Source
646d4c2bc3267f3f028f39e7e311b0f89aba2e4fdTorne (Richard Coles)# License. See LICENSE.TXT for details.
746d4c2bc3267f3f028f39e7e311b0f89aba2e4fdTorne (Richard Coles)#
846d4c2bc3267f3f028f39e7e311b0f89aba2e4fdTorne (Richard Coles)##===----------------------------------------------------------------------===##
946d4c2bc3267f3f028f39e7e311b0f89aba2e4fdTorne (Richard Coles)#
1046d4c2bc3267f3f028f39e7e311b0f89aba2e4fdTorne (Richard Coles)# This file defines support for installing a copy of the libcxx headers where
1146d4c2bc3267f3f028f39e7e311b0f89aba2e4fdTorne (Richard Coles)# the driver expects them.
1246d4c2bc3267f3f028f39e7e311b0f89aba2e4fdTorne (Richard Coles)#
1346d4c2bc3267f3f028f39e7e311b0f89aba2e4fdTorne (Richard Coles)##===----------------------------------------------------------------------===##
14
15CLANG_LEVEL := ../..
16include $(CLANG_LEVEL)/Makefile
17
18PROJ_libcxx_hdrs := $(DESTDIR)$(PROJ_prefix)/include
19
20# Expect libcxx to be in llvm/projects/libcxx
21LIBCXX_SRC_ROOT := $(LLVM_SRC_ROOT)/projects/libcxx
22
23ifneq ($(CLANG_NO_RUNTIME),1)
24ifeq ($(shell test -d $(LIBCXX_SRC_ROOT) && echo OK),OK)
25
26install-local::
27	$(MAKE) -C $(LIBCXX_SRC_ROOT) \
28	  HEADER_DIR=$(PROJ_libcxx_hdrs) installheaders
29
30endif
31endif
32