[llvm-branch-commits] [cfe-branch] r123050 - /cfe/branches/Apple/whitney-IB/ClangBNI.mk
Eric Christopher
echristo at apple.com
Fri Jan 7 17:49:27 PST 2011
Author: echristo
Date: Fri Jan 7 19:49:27 2011
New Revision: 123050
URL: http://llvm.org/viewvc/llvm-project?rev=123050&view=rev
Log:
Use tar to copy sources over, excluding a number of directories. Add
a TODO for less copying.
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=123050&r1=123049&r2=123050&view=diff
==============================================================================
--- cfe/branches/Apple/whitney-IB/ClangBNI.mk (original)
+++ cfe/branches/Apple/whitney-IB/ClangBNI.mk Fri Jan 7 19:49:27 2011
@@ -438,7 +438,7 @@
INSTALL := /usr/bin/install
INSTALL_FILE := $(INSTALL) -m 0444
MKDIR := /bin/mkdir -p -m 0755
-PAX := /bin/pax
+TAR := /usr/bin/tar
RMDIR := /bin/rm -fr
XARGS := /usr/bin/xargs
@@ -481,12 +481,13 @@
clean:
+# We can --exclude src/tools/clang/test/ when the top level makefile stops
+# trying to create a test directory when IS_TOP_LEVEL.
installsrc:
@echo "Installing source..."
$(_v) $(MKDIR) "$(SRCROOT)"
- $(_v) $(PAX) -rw . "$(SRCROOT)"
+ $(_v) $(TAR) -cL --exclude src/test/ --exclude src/projects/test-suite --exclude src/projects/compiler-rt -f - . | (cd "$(SRCROOT)"; $(TAR) xpf - )
$(_v) $(FIND) "$(SRCROOT)" $(Find_Cruft) -depth -exec $(RMDIR) "{}" \;
- $(_v) rm -rf "$(SRCROOT)"/src/test/*/
$(_v) rm -rf "$(SRCROOT)"/src/tools/clang/test/*/
installhdrs:
More information about the llvm-branch-commits
mailing list