diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-10-08 22:15:31 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-10-08 22:15:31 +0000 |
commit | 14ea5696417a8e8d244a07091284cdeba57c6d4d (patch) | |
tree | c6a3ca32ea126c1314d5cc349bba661f58b7f7b1 /Makefile | |
parent | e36803167e1b71692e571224e2fa2363d4b5a861 (diff) |
Installation of Clang libraries and headers, from Axel Naumann!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@83582 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 25 |
1 files changed, 25 insertions, 0 deletions
@@ -30,3 +30,28 @@ cscope.files: -or -name '*.h' > cscope.files .PHONY: test report clean cscope.files + +install-local:: + $(Echo) Installing include files + $(Verb) $(MKDIR) $(PROJ_includedir) + $(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' ')' -print | grep -v CVS | \ + grep -v .svn` ; do \ + instdir=`dirname "$(PROJ_includedir)/$$hdr"` ; \ + if test \! -d "$$instdir" ; then \ + $(EchoCmd) Making install directory $$instdir ; \ + $(MKDIR) $$instdir ;\ + fi ; \ + $(DataInstall) $$hdr $(PROJ_includedir)/$$hdr ; \ + done ; \ + fi +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 \ + $(DataInstall) $$hdr $(PROJ_includedir)/$$hdr ; \ + done ; \ + fi +endif |