]> granicus.if.org Git - clang/commitdiff
include/clang*/Makefile: Tweak installation to work with CLANG_SRCDIR.
authorNAKAMURA Takumi <geek4civic@gmail.com>
Mon, 5 Dec 2011 06:13:20 +0000 (06:13 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Mon, 5 Dec 2011 06:13:20 +0000 (06:13 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@145800 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang-c/Makefile
include/clang/Makefile

index 3f3ae5843ec0319bf1557bfa1a7876380b8098fd..81f5f41b17642393f6661a35270671cb34d67ea5 100644 (file)
@@ -8,8 +8,8 @@ IntIncludeDir = $(DESTDIR)$(PROJ_internal_prefix)/include
 install-local::
        $(Echo) Installing Clang C API include files
        $(Verb) $(MKDIR) $(IntIncludeDir)
-       $(Verb) if test -d "$(PROJ_SRC_ROOT)/tools/clang/include/clang-c" ; then \
-         cd $(PROJ_SRC_ROOT)/tools/clang/include && \
+       $(Verb) if test -d "$(PROJ_SRC_DIR)" ; then \
+         cd $(PROJ_SRC_DIR)/.. && \
          for  hdr in `find clang-c -type f '!' '(' -name '*~' \
              -o -name '.#*' -o -name '*.in' -o -name '*.txt' \
              -o -name 'Makefile' -o -name '*.td' ')' -print \
index a6f2597cb95a2727a54672110120468fa0b55fb6..f7ce58bd56a168761e2b2ce401474198bd2968cd 100644 (file)
@@ -6,8 +6,8 @@ include $(CLANG_LEVEL)/Makefile
 install-local::
        $(Echo) Installing Clang include files
        $(Verb) $(MKDIR) $(DESTDIR)$(PROJ_includedir)
-       $(Verb) if test -d "$(PROJ_SRC_ROOT)/tools/clang/include/clang" ; then \
-         cd $(PROJ_SRC_ROOT)/tools/clang/include && \
+       $(Verb) if test -d "$(PROJ_SRC_DIR)" ; then \
+         cd $(PROJ_SRC_DIR)/.. && \
          for  hdr in `find clang -type f \
              '(' -name LICENSE.TXT \
               -o -name '*.def' \