Makefile 1.3 KB

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