auto merge of #13223 : brson/rust/dist, r=alexcrichton
This commit is contained in:
commit
c821cacfed
17
mk/dist.mk
17
mk/dist.mk
@ -53,6 +53,7 @@ PKG_FILES := \
|
|||||||
driver \
|
driver \
|
||||||
etc \
|
etc \
|
||||||
$(foreach crate,$(CRATES),lib$(crate)) \
|
$(foreach crate,$(CRATES),lib$(crate)) \
|
||||||
|
libbacktrace \
|
||||||
rt \
|
rt \
|
||||||
rustllvm \
|
rustllvm \
|
||||||
snapshots.txt \
|
snapshots.txt \
|
||||||
@ -78,6 +79,7 @@ $(PKG_TAR): $(PKG_FILES)
|
|||||||
--exclude=*/llvm/test/*/*/*.td \
|
--exclude=*/llvm/test/*/*/*.td \
|
||||||
--exclude=*/llvm/test/*/*/*.s \
|
--exclude=*/llvm/test/*/*/*.s \
|
||||||
-c $(UNROOTED_PKG_FILES) | tar -x -C tmp/dist/$(PKG_NAME)
|
-c $(UNROOTED_PKG_FILES) | tar -x -C tmp/dist/$(PKG_NAME)
|
||||||
|
@$(call E, making $@)
|
||||||
$(Q)tar -czf $(PKG_TAR) -C tmp/dist $(PKG_NAME)
|
$(Q)tar -czf $(PKG_TAR) -C tmp/dist $(PKG_NAME)
|
||||||
$(Q)rm -Rf tmp/dist/$(PKG_NAME)
|
$(Q)rm -Rf tmp/dist/$(PKG_NAME)
|
||||||
|
|
||||||
@ -247,6 +249,7 @@ distcheck-tar-bins: dist-tar-bins
|
|||||||
$(Q)mkdir -p tmp/distcheck/tarbininstall
|
$(Q)mkdir -p tmp/distcheck/tarbininstall
|
||||||
$(Q)sh tmp/distcheck/$(PKG_NAME)-$(CFG_BUILD)/install.sh --prefix=tmp/distcheck/tarbininstall
|
$(Q)sh tmp/distcheck/$(PKG_NAME)-$(CFG_BUILD)/install.sh --prefix=tmp/distcheck/tarbininstall
|
||||||
$(Q)tmp/distcheck/tarbininstall/bin/rustc --version
|
$(Q)tmp/distcheck/tarbininstall/bin/rustc --version
|
||||||
|
$(Q)sh tmp/distcheck/$(PKG_NAME)-$(CFG_BUILD)/install.sh --prefix=tmp/distcheck/tarbininstall --uninstall
|
||||||
$(Q)rm -Rf tmp/distcheck/$(PKG_NAME)-$(CFG_BUILD)
|
$(Q)rm -Rf tmp/distcheck/$(PKG_NAME)-$(CFG_BUILD)
|
||||||
$(Q)rm -Rf tmp/distcheck/tarbininstall
|
$(Q)rm -Rf tmp/distcheck/tarbininstall
|
||||||
|
|
||||||
@ -280,9 +283,19 @@ distcheck: distcheck-win
|
|||||||
|
|
||||||
else
|
else
|
||||||
|
|
||||||
dist: dist-tar-src dist-osx dist-tar-bins dist-docs
|
# FIXME #13224: On OS X don't produce tarballs simply because --exclude-vcs don't work.
|
||||||
|
# This is a huge hack because I just don't have time to figure out another solution.
|
||||||
|
ifeq ($(CFG_OSTYPE), apple-darwin)
|
||||||
|
MAYBE_DIST_TAR_SRC=
|
||||||
|
MAYBE_DISTCHECK_TAR_SRC=
|
||||||
|
else
|
||||||
|
MAYBE_DIST_TAR_SRC=dist-tar-src
|
||||||
|
MAYBE_DISTCHECK_TAR_SRC=distcheck-tar-src
|
||||||
|
endif
|
||||||
|
|
||||||
distcheck: distcheck-tar-src distcheck-osx distcheck-tar-bins distcheck-docs
|
dist: $(MAYBE_DIST_TAR_SRC) dist-osx dist-tar-bins dist-docs
|
||||||
|
|
||||||
|
distcheck: $(MAYBE_DISTCHECK_TAR_SRC) distcheck-osx distcheck-tar-bins distcheck-docs
|
||||||
$(Q)rm -Rf tmp/distcheck
|
$(Q)rm -Rf tmp/distcheck
|
||||||
@echo
|
@echo
|
||||||
@echo -----------------------------------------------
|
@echo -----------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user