Home | History | Annotate | Download | only in clang-c
      1 CLANG_LEVEL := ../..
      2 DIRS :=
      3 
      4 include $(CLANG_LEVEL)/Makefile
      5 
      6 install-local::
      7 	$(Echo) Installing Clang C API include files
      8 	$(Verb) $(MKDIR) $(DESTDIR)$(PROJ_includedir)
      9 	$(Verb) if test -d "$(PROJ_SRC_ROOT)/tools/clang/include/clang-c" ; then \
     10 	  cd $(PROJ_SRC_ROOT)/tools/clang/include && \
     11 	  for  hdr in `find clang-c -type f '!' '(' -name '*~' \
     12 	      -o -name '.#*' -o -name '*.in' -o -name '*.txt' \
     13 	      -o -name 'Makefile' -o -name '*.td' ')' -print \
     14               | grep -v CVS | grep -v .svn | grep -v .dir` ; do \
     15 	    instdir=$(DESTDIR)`dirname "$(PROJ_includedir)/$$hdr"` ; \
     16 	    if test \! -d "$$instdir" ; then \
     17 	      $(EchoCmd) Making install directory $$instdir ; \
     18 	      $(MKDIR) $$instdir ;\
     19 	    fi ; \
     20 	    $(DataInstall) $$hdr $(DESTDIR)$(PROJ_includedir)/$$hdr ; \
     21 	  done ; \
     22 	fi
     23 ifneq ($(PROJ_SRC_ROOT),$(PROJ_OBJ_ROOT))
     24 	$(Verb) if test -d "$(PROJ_OBJ_ROOT)/tools/clang/include/clang-c" ; then \
     25 	  cd $(PROJ_OBJ_ROOT)/tools/clang/include && \
     26 	  for hdr in `find clang-c -type f '!' '(' -name 'Makefile' ')' -print \
     27             | grep -v CVS | grep -v .tmp | grep -v .dir` ; do \
     28 	    $(DataInstall) $$hdr $(DESTDIR)$(PROJ_includedir)/$$hdr ; \
     29 	  done ; \
     30 	fi
     31 endif
     32