1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 20:51:52 +01:00

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

contributed by Vladimir Merzliakov!

llvm-svn: 20084
This commit is contained in:
Chris Lattner 2005-02-09 02:24:00 +00:00
parent d42ae810cb
commit cbc812d17e

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