1CLANG_LEVEL := ../.. 2DIRS := AST Basic Driver Lex Parse Sema Serialization 3 4include $(CLANG_LEVEL)/Makefile 5 6install-local:: 7 $(Echo) Installing Clang include files 8 $(Verb) $(MKDIR) $(DESTDIR)$(PROJ_includedir) 9 $(Verb) if test -d "$(PROJ_SRC_DIR)" ; then \ 10 cd $(PROJ_SRC_DIR)/.. && \ 11 for hdr in `find clang -type f \ 12 '(' -name LICENSE.TXT \ 13 -o -name '*.def' \ 14 -o -name '*.h' \ 15 -o -name '*.inc' \ 16 ')' -print \ 17 | grep -v CVS | grep -v .svn | grep -v .dir` ; do \ 18 instdir=$(DESTDIR)`dirname "$(PROJ_includedir)/$$hdr"` ; \ 19 if test \! -d "$$instdir" ; then \ 20 $(EchoCmd) Making install directory $$instdir ; \ 21 $(MKDIR) $$instdir ;\ 22 fi ; \ 23 $(DataInstall) $$hdr $(DESTDIR)$(PROJ_includedir)/$$hdr ; \ 24 done ; \ 25 fi 26ifneq ($(PROJ_SRC_ROOT),$(PROJ_OBJ_ROOT)) 27 $(Verb) if test -d "$(PROJ_OBJ_ROOT)/tools/clang/include/clang" ; then \ 28 cd $(PROJ_OBJ_ROOT)/tools/clang/include && \ 29 for hdr in `find clang -type f \ 30 '(' -name LICENSE.TXT \ 31 -o -name '*.def' \ 32 -o -name '*.h' \ 33 -o -name '*.inc' \ 34 ')' -print \ 35 | grep -v CVS | grep -v .tmp | grep -v .dir` ; do \ 36 instdir=$(DESTDIR)`dirname "$(PROJ_includedir)/$$hdr"` ; \ 37 if test \! -d "$$instdir" ; then \ 38 $(EchoCmd) Making install directory $$instdir ; \ 39 $(MKDIR) $$instdir ;\ 40 fi ; \ 41 $(DataInstall) $$hdr $(DESTDIR)$(PROJ_includedir)/$$hdr ; \ 42 done ; \ 43 fi 44endif 45