[llvm-branch-commits] [cfe-branch] r107155 - /cfe/branches/Apple/whitney-IB/ClangBNI.mk
Daniel Dunbar
daniel at zuster.org
Tue Jun 29 10:03:40 PDT 2010
Author: ddunbar
Date: Tue Jun 29 12:03:40 2010
New Revision: 107155
URL: http://llvm.org/viewvc/llvm-project?rev=107155&view=rev
Log:
Only make clang++ links when clang++ was built.
Modified:
cfe/branches/Apple/whitney-IB/ClangBNI.mk
Modified: cfe/branches/Apple/whitney-IB/ClangBNI.mk
URL: http://llvm.org/viewvc/llvm-project/cfe/branches/Apple/whitney-IB/ClangBNI.mk?rev=107155&r1=107154&r2=107155&view=diff
==============================================================================
--- cfe/branches/Apple/whitney-IB/ClangBNI.mk (original)
+++ cfe/branches/Apple/whitney-IB/ClangBNI.mk Tue Jun 29 12:03:40 2010
@@ -407,12 +407,14 @@
install-clang-rootlinks: install-clang_final
$(MKDIR) -p $(DSTROOT)/usr/bin
+ $(MKDIR) -p $(DSTROOT)/usr/share/man/man1
ln -sf ../../$(Install_Prefix)/bin/clang $(DSTROOT)/usr/bin/clang
- ln -sf ../../$(Install_Prefix)/bin/clang++ $(DSTROOT)/usr/bin/clang++; \
- $(MKDIR) -p $(DSTROOT)/usr/share/man/man1/
cp $(DSTROOT)/$(Install_Prefix)/share/man/man1/clang.1 $(DSTROOT)/usr/share/man/man1/
- ln -sf clang.1 $(DSTROOT)/$(Install_Prefix)/share/man/man1/clang++.1
- ln -sf clang.1 $(DSTROOT)/usr/share/man/man1/clang++.1
+ if [ -f $(DSTROOT)/$(Install_Prefix)/bin/clang++ ]; then \
+ ln -sf ../../$(Install_Prefix)/bin/clang++ $(DSTROOT)/usr/bin/clang++; \
+ ln -sf clang.1 $(DSTROOT)/$(Install_Prefix)/share/man/man1/clang++.1; \
+ ln -sf clang.1 $(DSTROOT)/usr/share/man/man1/clang++.1
+ fi
install-clang-opensourcelicense: install-clang_final
$(MKDIR) $(OSV)
More information about the llvm-branch-commits
mailing list