summaryrefslogtreecommitdiffstats
path: root/clang/include/clang-c
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@apple.com>2011-11-28 08:03:54 +0000
committerBob Wilson <bob.wilson@apple.com>2011-11-28 08:03:54 +0000
commitbd0fbe86c517a4e00e14d3bdc88e74b70a8cf088 (patch)
tree3f3075c2f7af64665d2186653aba21ed60b2189a /clang/include/clang-c
parent3f35470fc7d8a2b2faea5fda9653224e63234262 (diff)
downloadbcm5719-llvm-bd0fbe86c517a4e00e14d3bdc88e74b70a8cf088.tar.gz
bcm5719-llvm-bd0fbe86c517a4e00e14d3bdc88e74b70a8cf088.zip
Install c-index-test and clang-c/Index.h as internal files. rdar://10217046
Specify that these files should be installed to the optional internal install location as specified by configure's --with-internal-prefix. If that option is not used, they'll be installed to the default prefix as before. llvm-svn: 145235
Diffstat (limited to 'clang/include/clang-c')
-rw-r--r--clang/include/clang-c/Makefile10
1 files changed, 6 insertions, 4 deletions
diff --git a/clang/include/clang-c/Makefile b/clang/include/clang-c/Makefile
index 98ea7190e68..3f3ae5843ec 100644
--- a/clang/include/clang-c/Makefile
+++ b/clang/include/clang-c/Makefile
@@ -3,21 +3,23 @@ DIRS :=
include $(CLANG_LEVEL)/Makefile
+IntIncludeDir = $(DESTDIR)$(PROJ_internal_prefix)/include
+
install-local::
$(Echo) Installing Clang C API include files
- $(Verb) $(MKDIR) $(DESTDIR)$(PROJ_includedir)
+ $(Verb) $(MKDIR) $(IntIncludeDir)
$(Verb) if test -d "$(PROJ_SRC_ROOT)/tools/clang/include/clang-c" ; then \
cd $(PROJ_SRC_ROOT)/tools/clang/include && \
for hdr in `find clang-c -type f '!' '(' -name '*~' \
-o -name '.#*' -o -name '*.in' -o -name '*.txt' \
-o -name 'Makefile' -o -name '*.td' ')' -print \
| grep -v CVS | grep -v .svn | grep -v .dir` ; do \
- instdir=$(DESTDIR)`dirname "$(PROJ_includedir)/$$hdr"` ; \
+ instdir=`dirname "$(IntIncludeDir)/$$hdr"` ; \
if test \! -d "$$instdir" ; then \
$(EchoCmd) Making install directory $$instdir ; \
$(MKDIR) $$instdir ;\
fi ; \
- $(DataInstall) $$hdr $(DESTDIR)$(PROJ_includedir)/$$hdr ; \
+ $(DataInstall) $$hdr $(IntIncludeDir)/$$hdr ; \
done ; \
fi
ifneq ($(PROJ_SRC_ROOT),$(PROJ_OBJ_ROOT))
@@ -25,7 +27,7 @@ ifneq ($(PROJ_SRC_ROOT),$(PROJ_OBJ_ROOT))
cd $(PROJ_OBJ_ROOT)/tools/clang/include && \
for hdr in `find clang-c -type f '!' '(' -name 'Makefile' ')' -print \
| grep -v CVS | grep -v .tmp | grep -v .dir` ; do \
- $(DataInstall) $$hdr $(DESTDIR)$(PROJ_includedir)/$$hdr ; \
+ $(DataInstall) $$hdr $(IntIncludeDir)/$$hdr ; \
done ; \
fi
endif
OpenPOWER on IntegriCloud