]> granicus.if.org Git - clang/commitdiff
Don't install Makefiles nor tablegen input in include/.
authorAxel Naumann <Axel.Naumann@cern.ch>
Mon, 12 Oct 2009 16:42:18 +0000 (16:42 +0000)
committerAxel Naumann <Axel.Naumann@cern.ch>
Mon, 12 Oct 2009 16:42:18 +0000 (16:42 +0000)
Fix exclusion of .tmp, which in turn enables installation of $(PROJ_OBJ_ROOT)/tools/clang/include/*.inc.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@83855 91177308-0d34-0410-b5e6-96231b3b80d8

Makefile

index 16db680338d81c288d8a52b21dafb7a7eb05bea5..22fe214705cd946ea8a28debe1f642e8437781cf 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -37,8 +37,9 @@ install-local::
        $(Verb) if test -d "$(PROJ_SRC_ROOT)/tools/clang/include" ; then \
          cd $(PROJ_SRC_ROOT)/tools/clang/include && \
          for  hdr in `find . -type f '!' '(' -name '*~' \
-             -o -name '.#*' -o -name '*.in' -o -name '*.txt' ')' -print | grep -v CVS | \
-             grep -v .svn` ; do \
+             -o -name '.#*' -o -name '*.in' -o -name '*.txt' \
+             -o -name 'Makefile' -o -name '*.td' ')' -print \
+              | grep -v CVS | grep -v .svn` ; do \
            instdir=`dirname "$(PROJ_includedir)/$$hdr"` ; \
            if test \! -d "$$instdir" ; then \
              $(EchoCmd) Making install directory $$instdir ; \
@@ -50,7 +51,8 @@ install-local::
 ifneq ($(PROJ_SRC_ROOT),$(PROJ_OBJ_ROOT))
        $(Verb) if test -d "$(PROJ_OBJ_ROOT)/tools/clang/include" ; then \
          cd $(PROJ_OBJ_ROOT)/tools/clang/include && \
-         for hdr in `find . -type f -print | grep -v CVS .tmp` ; do \
+         for hdr in `find . -type f '!' '(' -name 'Makefile' ')' -print \
+            | grep -v CVS | grep -v .tmp` ; do \
            $(DataInstall) $$hdr $(PROJ_includedir)/$$hdr ; \
          done ; \
        fi