Skip to content

Commit 2b8846f

Browse files
committed
For PR2928
--- Merging r127325 into '.': U Makefile.rules llvm-svn: 127689
1 parent c810fe2 commit 2b8846f

File tree

1 file changed

+20
-3
lines changed

1 file changed

+20
-3
lines changed

llvm/Makefile.rules

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2139,8 +2139,13 @@ install-local::
21392139
$(Verb) $(MKDIR) $(DESTDIR)$(PROJ_includedir)
21402140
$(Verb) if test -d "$(PROJ_SRC_ROOT)/include" ; then \
21412141
cd $(PROJ_SRC_ROOT)/include && \
2142-
for hdr in `find . -type f '!' '(' -name '*~' \
2143-
-o -name '.#*' -o -name '*.in' ')' -print | grep -v CVS | \
2142+
for hdr in `find . -type f \
2143+
'(' -name LICENSE.TXT \
2144+
-o -name '*.def' \
2145+
-o -name '*.h' \
2146+
-o -name '*.inc' \
2147+
-o -name '*.td' \
2148+
')' -print | grep -v CVS | \
21442149
grep -v .svn` ; do \
21452150
instdir=`dirname "$(DESTDIR)$(PROJ_includedir)/$$hdr"` ; \
21462151
if test \! -d "$$instdir" ; then \
@@ -2153,7 +2158,19 @@ install-local::
21532158
ifneq ($(PROJ_SRC_ROOT),$(PROJ_OBJ_ROOT))
21542159
$(Verb) if test -d "$(PROJ_OBJ_ROOT)/include" ; then \
21552160
cd $(PROJ_OBJ_ROOT)/include && \
2156-
for hdr in `find . -type f -print | grep -v CVS` ; do \
2161+
for hdr in `find . -type f \
2162+
'(' -name LICENSE.TXT \
2163+
-o -name '*.def' \
2164+
-o -name '*.h' \
2165+
-o -name '*.inc' \
2166+
-o -name '*.td' \
2167+
')' -print | grep -v CVS | \
2168+
grep -v .svn` ; do \
2169+
instdir=`dirname "$(DESTDIR)$(PROJ_includedir)/$$hdr"` ; \
2170+
if test \! -d "$$instdir" ; then \
2171+
$(EchoCmd) Making install directory $$instdir ; \
2172+
$(MKDIR) $$instdir ;\
2173+
fi ; \
21572174
$(DataInstall) $$hdr $(DESTDIR)$(PROJ_includedir)/$$hdr ; \
21582175
done ; \
21592176
fi

0 commit comments

Comments
 (0)