1*f4a2713aSLionel SambucCLANG_LEVEL := ../.. 2*f4a2713aSLionel SambucDIRS := 3*f4a2713aSLionel Sambuc 4*f4a2713aSLionel Sambucinclude $(CLANG_LEVEL)/Makefile 5*f4a2713aSLionel Sambuc 6*f4a2713aSLionel SambucIntIncludeDir = $(DESTDIR)$(PROJ_internal_prefix)/include 7*f4a2713aSLionel Sambuc 8*f4a2713aSLionel Sambucinstall-local:: 9*f4a2713aSLionel Sambuc $(Echo) Installing Clang C API include files 10*f4a2713aSLionel Sambuc $(Verb) $(MKDIR) $(IntIncludeDir) 11*f4a2713aSLionel Sambuc $(Verb) if test -d "$(PROJ_SRC_DIR)" ; then \ 12*f4a2713aSLionel Sambuc cd $(PROJ_SRC_DIR)/.. && \ 13*f4a2713aSLionel Sambuc for hdr in `find clang-c -type f '!' '(' -name '*~' \ 14*f4a2713aSLionel Sambuc -o -name '.#*' -o -name '*.in' -o -name '*.txt' \ 15*f4a2713aSLionel Sambuc -o -name 'Makefile' -o -name '*.td' ')' -print \ 16*f4a2713aSLionel Sambuc | grep -v CVS | grep -v .svn | grep -v .dir` ; do \ 17*f4a2713aSLionel Sambuc instdir=`dirname "$(IntIncludeDir)/$$hdr"` ; \ 18*f4a2713aSLionel Sambuc if test \! -d "$$instdir" ; then \ 19*f4a2713aSLionel Sambuc $(EchoCmd) Making install directory $$instdir ; \ 20*f4a2713aSLionel Sambuc $(MKDIR) $$instdir ;\ 21*f4a2713aSLionel Sambuc fi ; \ 22*f4a2713aSLionel Sambuc $(DataInstall) $$hdr $(IntIncludeDir)/$$hdr ; \ 23*f4a2713aSLionel Sambuc done ; \ 24*f4a2713aSLionel Sambuc fi 25*f4a2713aSLionel Sambucifneq ($(PROJ_SRC_ROOT),$(PROJ_OBJ_ROOT)) 26*f4a2713aSLionel Sambuc $(Verb) if test -d "$(PROJ_OBJ_ROOT)/tools/clang/include/clang-c" ; then \ 27*f4a2713aSLionel Sambuc cd $(PROJ_OBJ_ROOT)/tools/clang/include && \ 28*f4a2713aSLionel Sambuc for hdr in `find clang-c -type f '!' '(' -name 'Makefile' ')' -print \ 29*f4a2713aSLionel Sambuc | grep -v CVS | grep -v .tmp | grep -v .dir` ; do \ 30*f4a2713aSLionel Sambuc instdir=`dirname "$(IntIncludeDir)/$$hdr"` ; \ 31*f4a2713aSLionel Sambuc if test \! -d "$$instdir" ; then \ 32*f4a2713aSLionel Sambuc $(EchoCmd) Making install directory $$instdir ; \ 33*f4a2713aSLionel Sambuc $(MKDIR) $$instdir ;\ 34*f4a2713aSLionel Sambuc fi ; \ 35*f4a2713aSLionel Sambuc $(DataInstall) $$hdr $(IntIncludeDir)/$$hdr ; \ 36*f4a2713aSLionel Sambuc done ; \ 37*f4a2713aSLionel Sambuc fi 38*f4a2713aSLionel Sambucendif 39