Fix installation of configured headers when objdir != srcdir. Patch

contributed by Vladimir Merzliakov!


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20084 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2005-02-09 02:24:00 +00:00
parent 445171aaf6
commit ca94fa21a3

View File

@ -1450,18 +1450,26 @@ install-local::
$(Verb) if [ -d "$(PROJ_SRC_ROOT)/include" ] ; then \
cd $(PROJ_SRC_ROOT)/include && \
find . -path '*/Internal' -prune -o '(' -type f \
'!' '(' -name '*~' -o -name '.cvsignore' -o -name '.#*' ')' \
'!' '(' -name '*~' -o -name '.cvsignore' -o -name '.#*' -o -name '*.in' ')' \
-print ')' | grep -v CVS | pax -rwdvpe $(PROJ_includedir) ; \
fi
$(Verb) if [ -d "$(PROJ_OBJ_ROOT)/include" ] ; then \
cd $(PROJ_OBJ_ROOT)/include && ( cd $(PROJ_SRC_ROOT)/include && \
find . -path '*/Internal' -prune -o '(' -type f -name '*.in' -print ')' ) \
| sed 's#.in$$##' | pax -rwdvpe $(PROJ_includedir) ; \
fi
uninstall-local::
$(Echo) Uninstalling include files
$(Verb) if [ -d "$(PROJ_SRC_ROOT)/include" ] ; then \
cd $(PROJ_SRC_ROOT)/include && \
$(RM) -f `find . -path '*/Internal' -prune -o '(' -type f \
'!' '(' -name '*~' -o -name '.cvsignore' -o -name '.#*' ')' \
'!' '(' -name '*~' -o -name '.cvsignore' -o -name '.#*' -o -name '*.in' ')' \
-print ')' | grep -v CVS | sed 's#^#$(PROJ_includedir)/#'` ; \
fi
cd $(PROJ_SRC_ROOT)/include && \
$(RM) -f `find . -path '*/Internal' -prune -o '(' -type f -name '*.in' -print ')' \
| sed 's#\.in$$##;s#^#$(PROJ_includedir)/#'` ; \
fi
endif