2014-03-21 19:40:31 +01:00
|
|
|
# Copyright 2014 The Rust Project Developers. See the COPYRIGHT
|
|
|
|
# file at the top-level directory of this distribution and at
|
|
|
|
# http://rust-lang.org/COPYRIGHT.
|
|
|
|
#
|
|
|
|
# Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
|
|
|
# <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
|
|
|
|
# option. This file may not be copied, modified, or distributed
|
|
|
|
# except according to those terms.
|
|
|
|
|
2011-05-01 22:18:52 +02:00
|
|
|
######################################################################
|
|
|
|
# Distribution
|
|
|
|
######################################################################
|
|
|
|
|
2014-03-21 19:40:31 +01:00
|
|
|
# Primary targets:
|
|
|
|
#
|
|
|
|
# * dist - make all distribution artifacts
|
|
|
|
# * distcheck - sanity check dist artifacts
|
|
|
|
# * dist-tar-src - source tarballs
|
|
|
|
# * dist-win - Windows exe installers
|
|
|
|
# * dist-osx - OS X .pkg installers
|
|
|
|
# * dist-tar-bins - Ad-hoc Unix binary installers
|
2014-03-21 21:37:09 +01:00
|
|
|
# * dist-docs - Stage docs for upload
|
2014-03-21 19:40:31 +01:00
|
|
|
|
2014-03-26 01:54:26 +01:00
|
|
|
PKG_NAME := $(CFG_PACKAGE_NAME)
|
2011-05-01 22:18:52 +02:00
|
|
|
|
2014-03-22 03:20:44 +01:00
|
|
|
# License suitable for displaying in a popup
|
|
|
|
LICENSE.txt: $(S)COPYRIGHT $(S)LICENSE-APACHE $(S)LICENSE-MIT
|
|
|
|
cat $^ > $@
|
|
|
|
|
|
|
|
|
|
|
|
######################################################################
|
|
|
|
# Source tarball
|
|
|
|
######################################################################
|
|
|
|
|
|
|
|
PKG_TAR = dist/$(PKG_NAME).tar.gz
|
|
|
|
|
2014-10-01 08:10:10 +02:00
|
|
|
PKG_GITMODULES := $(S)src/llvm $(S)src/compiler-rt \
|
2014-05-11 20:55:39 +02:00
|
|
|
$(S)src/rt/hoedown $(S)src/jemalloc
|
2012-01-19 02:25:54 +01:00
|
|
|
PKG_FILES := \
|
2012-12-07 23:39:40 +01:00
|
|
|
$(S)COPYRIGHT \
|
2012-12-07 23:37:01 +01:00
|
|
|
$(S)LICENSE-APACHE \
|
|
|
|
$(S)LICENSE-MIT \
|
2013-04-08 10:15:12 +02:00
|
|
|
$(S)AUTHORS.txt \
|
2013-07-13 15:57:01 +02:00
|
|
|
$(S)CONTRIBUTING.md \
|
2012-12-07 23:37:01 +01:00
|
|
|
$(S)README.md \
|
2014-10-03 01:18:27 +02:00
|
|
|
$(S)RELEASES.md \
|
2011-05-01 22:18:52 +02:00
|
|
|
$(S)configure $(S)Makefile.in \
|
2012-01-20 21:06:14 +01:00
|
|
|
$(S)man \
|
2011-05-01 22:18:52 +02:00
|
|
|
$(addprefix $(S)src/, \
|
2012-01-10 23:34:53 +01:00
|
|
|
compiletest \
|
2014-02-15 04:36:56 +01:00
|
|
|
doc \
|
2014-02-08 14:37:48 +01:00
|
|
|
driver \
|
2012-01-10 23:34:53 +01:00
|
|
|
etc \
|
2014-02-08 14:37:48 +01:00
|
|
|
$(foreach crate,$(CRATES),lib$(crate)) \
|
2014-06-30 18:13:09 +02:00
|
|
|
libcoretest \
|
2014-03-31 06:13:25 +02:00
|
|
|
libbacktrace \
|
2012-01-10 23:34:53 +01:00
|
|
|
rt \
|
|
|
|
rustllvm \
|
|
|
|
snapshots.txt \
|
|
|
|
test) \
|
|
|
|
$(PKG_GITMODULES) \
|
2014-03-21 23:15:45 +01:00
|
|
|
$(filter-out config.stamp, \
|
|
|
|
$(MKFILES_FOR_TARBALL))
|
2011-05-01 22:18:52 +02:00
|
|
|
|
2012-01-19 02:25:54 +01:00
|
|
|
UNROOTED_PKG_FILES := $(patsubst $(S)%,./%,$(PKG_FILES))
|
2011-07-23 21:26:47 +02:00
|
|
|
|
|
|
|
$(PKG_TAR): $(PKG_FILES)
|
2011-05-01 22:18:52 +02:00
|
|
|
@$(call E, making dist dir)
|
2014-03-21 20:50:29 +01:00
|
|
|
$(Q)rm -Rf tmp/dist/$(PKG_NAME)
|
|
|
|
$(Q)mkdir -p tmp/dist/$(PKG_NAME)
|
2012-01-19 19:52:04 +01:00
|
|
|
$(Q)tar \
|
|
|
|
-C $(S) \
|
|
|
|
--exclude-vcs \
|
|
|
|
--exclude=*~ \
|
|
|
|
--exclude=*/llvm/test/*/*.ll \
|
|
|
|
--exclude=*/llvm/test/*/*.td \
|
|
|
|
--exclude=*/llvm/test/*/*.s \
|
|
|
|
--exclude=*/llvm/test/*/*/*.ll \
|
|
|
|
--exclude=*/llvm/test/*/*/*.td \
|
|
|
|
--exclude=*/llvm/test/*/*/*.s \
|
2014-03-21 20:50:29 +01:00
|
|
|
-c $(UNROOTED_PKG_FILES) | tar -x -C tmp/dist/$(PKG_NAME)
|
2014-03-31 09:05:41 +02:00
|
|
|
@$(call E, making $@)
|
2014-03-21 20:50:29 +01:00
|
|
|
$(Q)tar -czf $(PKG_TAR) -C tmp/dist $(PKG_NAME)
|
|
|
|
$(Q)rm -Rf tmp/dist/$(PKG_NAME)
|
2011-05-01 22:18:52 +02:00
|
|
|
|
2014-03-21 19:40:31 +01:00
|
|
|
dist-tar-src: $(PKG_TAR)
|
2012-01-18 01:49:44 +01:00
|
|
|
|
2014-03-22 02:55:31 +01:00
|
|
|
distcheck-tar-src: dist-tar-src
|
2014-03-21 23:15:45 +01:00
|
|
|
$(Q)rm -Rf tmp/distcheck/$(PKG_NAME)
|
|
|
|
$(Q)rm -Rf tmp/distcheck/srccheck
|
|
|
|
$(Q)mkdir -p tmp/distcheck
|
|
|
|
@$(call E, unpacking $(PKG_TAR) in tmp/distcheck/$(PKG_NAME))
|
|
|
|
$(Q)cd tmp/distcheck && tar -xzf ../../$(PKG_TAR)
|
|
|
|
@$(call E, configuring in tmp/distcheck/srccheck)
|
|
|
|
$(Q)mkdir -p tmp/distcheck/srccheck
|
|
|
|
$(Q)cd tmp/distcheck/srccheck && ../$(PKG_NAME)/configure
|
|
|
|
@$(call E, making 'check' in tmp/distcheck/srccheck)
|
|
|
|
$(Q)+make -C tmp/distcheck/srccheck check
|
|
|
|
@$(call E, making 'clean' in tmp/distcheck/srccheck)
|
|
|
|
$(Q)+make -C tmp/distcheck/srccheck clean
|
|
|
|
$(Q)rm -Rf tmp/distcheck/$(PKG_NAME)
|
|
|
|
$(Q)rm -Rf tmp/distcheck/srccheck
|
|
|
|
|
|
|
|
|
2014-03-21 18:48:13 +01:00
|
|
|
######################################################################
|
|
|
|
# Windows .exe installer
|
|
|
|
######################################################################
|
2012-01-20 03:29:48 +01:00
|
|
|
|
2014-03-21 22:02:08 +01:00
|
|
|
# FIXME Needs to support all hosts, but making rust.iss compatible looks like a chore
|
|
|
|
|
2014-03-21 18:48:13 +01:00
|
|
|
ifdef CFG_ISCC
|
2014-03-21 19:40:31 +01:00
|
|
|
|
2014-09-09 22:07:20 +02:00
|
|
|
PKG_EXE = dist/$(PKG_NAME)-$(CFG_BUILD).exe
|
2014-03-21 19:40:31 +01:00
|
|
|
|
2014-03-21 18:48:13 +01:00
|
|
|
%.iss: $(S)src/etc/pkg/%.iss
|
|
|
|
cp $< $@
|
2012-01-20 03:29:48 +01:00
|
|
|
|
2014-03-21 18:48:13 +01:00
|
|
|
%.ico: $(S)src/etc/pkg/%.ico
|
|
|
|
cp $< $@
|
2012-01-20 03:29:48 +01:00
|
|
|
|
2014-04-12 03:20:10 +02:00
|
|
|
$(PKG_EXE): rust.iss modpath.iss upgrade.iss LICENSE.txt rust-logo.ico \
|
2014-03-21 23:15:45 +01:00
|
|
|
$(CSREQ3_T_$(CFG_BUILD)_H_$(CFG_BUILD)) \
|
2014-03-21 18:48:13 +01:00
|
|
|
dist-prepare-win
|
2014-12-06 10:32:57 +01:00
|
|
|
$(Q)rm -rf tmp/dist/win/gcc
|
|
|
|
$(CFG_PYTHON) $(S)src/etc/make-win-dist.py tmp/dist/win/rust tmp/dist/win/gcc $(CFG_BUILD)
|
2014-03-21 18:48:13 +01:00
|
|
|
@$(call E, ISCC: $@)
|
2014-11-10 22:05:34 +01:00
|
|
|
$(Q)$(CFG_ISCC) $<
|
2012-01-18 01:49:44 +01:00
|
|
|
|
2014-03-24 20:03:47 +01:00
|
|
|
$(eval $(call DEF_PREPARE,win))
|
|
|
|
|
2014-03-21 18:48:13 +01:00
|
|
|
dist-prepare-win: PREPARE_HOST=$(CFG_BUILD)
|
|
|
|
dist-prepare-win: PREPARE_TARGETS=$(CFG_BUILD)
|
2014-12-06 10:32:57 +01:00
|
|
|
dist-prepare-win: PREPARE_DEST_DIR=tmp/dist/win/rust
|
2014-03-21 18:48:13 +01:00
|
|
|
dist-prepare-win: PREPARE_DIR_CMD=$(DEFAULT_PREPARE_DIR_CMD)
|
|
|
|
dist-prepare-win: PREPARE_BIN_CMD=$(DEFAULT_PREPARE_BIN_CMD)
|
|
|
|
dist-prepare-win: PREPARE_LIB_CMD=$(DEFAULT_PREPARE_LIB_CMD)
|
|
|
|
dist-prepare-win: PREPARE_MAN_CMD=$(DEFAULT_PREPARE_MAN_CMD)
|
|
|
|
dist-prepare-win: PREPARE_CLEAN=true
|
2014-03-24 20:03:47 +01:00
|
|
|
dist-prepare-win: prepare-base-win
|
2011-05-01 22:18:52 +02:00
|
|
|
|
2012-01-20 03:29:48 +01:00
|
|
|
endif
|
2014-02-25 17:47:58 +01:00
|
|
|
|
2014-03-21 19:40:31 +01:00
|
|
|
dist-win: $(PKG_EXE)
|
|
|
|
|
2014-03-22 02:55:31 +01:00
|
|
|
distcheck-win: dist-win
|
2014-03-21 18:48:13 +01:00
|
|
|
|
|
|
|
######################################################################
|
|
|
|
# OS X .pkg installer
|
|
|
|
######################################################################
|
|
|
|
|
2014-02-25 17:47:58 +01:00
|
|
|
ifeq ($(CFG_OSTYPE), apple-darwin)
|
|
|
|
|
2014-03-21 23:31:52 +01:00
|
|
|
define DEF_OSX_PKG
|
2014-03-24 20:03:47 +01:00
|
|
|
|
|
|
|
$$(eval $$(call DEF_PREPARE,osx-$(1)))
|
|
|
|
|
2014-03-21 23:31:52 +01:00
|
|
|
dist-prepare-osx-$(1): PREPARE_HOST=$(1)
|
2014-07-23 21:04:13 +02:00
|
|
|
dist-prepare-osx-$(1): PREPARE_TARGETS=$(2)
|
2014-03-21 23:31:52 +01:00
|
|
|
dist-prepare-osx-$(1): PREPARE_DEST_DIR=tmp/dist/pkgroot-$(1)
|
|
|
|
dist-prepare-osx-$(1): PREPARE_DIR_CMD=$(DEFAULT_PREPARE_DIR_CMD)
|
|
|
|
dist-prepare-osx-$(1): PREPARE_BIN_CMD=$(DEFAULT_PREPARE_BIN_CMD)
|
|
|
|
dist-prepare-osx-$(1): PREPARE_LIB_CMD=$(DEFAULT_PREPARE_LIB_CMD)
|
|
|
|
dist-prepare-osx-$(1): PREPARE_MAN_CMD=$(DEFAULT_PREPARE_MAN_CMD)
|
2014-03-24 20:03:47 +01:00
|
|
|
dist-prepare-osx-$(1): prepare-base-osx-$(1)
|
2014-03-21 23:31:52 +01:00
|
|
|
|
2014-03-28 22:35:43 +01:00
|
|
|
dist/$(PKG_NAME)-$(1).pkg: $(S)src/etc/pkg/Distribution.xml LICENSE.txt \
|
|
|
|
dist-prepare-osx-$(1) \
|
|
|
|
tmp/dist/pkgres-$(1)/LICENSE.txt \
|
|
|
|
tmp/dist/pkgres-$(1)/welcome.rtf \
|
|
|
|
tmp/dist/pkgres-$(1)/rust-logo.png
|
2014-03-21 23:31:52 +01:00
|
|
|
@$$(call E, making OS X pkg)
|
|
|
|
$(Q)pkgbuild --identifier org.rust-lang.rust --root tmp/dist/pkgroot-$(1) rust.pkg
|
2014-03-28 22:35:43 +01:00
|
|
|
$(Q)productbuild --distribution $(S)src/etc/pkg/Distribution.xml \
|
|
|
|
--resources tmp/dist/pkgres-$(1) dist/$(PKG_NAME)-$(1).pkg
|
2014-02-26 17:59:58 +01:00
|
|
|
$(Q)rm -rf tmp rust.pkg
|
2014-02-25 17:47:58 +01:00
|
|
|
|
2014-03-31 04:14:39 +02:00
|
|
|
tmp/dist/pkgres-$(1)/LICENSE.txt: LICENSE.txt
|
2014-03-28 22:35:43 +01:00
|
|
|
@$$(call E,pkg resource LICENSE.txt)
|
|
|
|
$(Q)mkdir -p $$(@D)
|
|
|
|
$(Q)cp $$< $$@
|
|
|
|
|
|
|
|
tmp/dist/pkgres-$(1)/%: $(S)src/etc/pkg/%
|
|
|
|
@$$(call E,pkg resource $$*)
|
|
|
|
$(Q)mkdir -p $$(@D)
|
|
|
|
$(Q)cp -r $$< $$@
|
|
|
|
|
2014-03-21 23:31:52 +01:00
|
|
|
endef
|
|
|
|
|
2014-07-23 21:04:13 +02:00
|
|
|
ifneq ($(CFG_ENABLE_DIST_HOST_ONLY),)
|
|
|
|
$(foreach host,$(CFG_HOST),$(eval $(call DEF_OSX_PKG,$(host),$(host))))
|
|
|
|
else
|
|
|
|
$(foreach host,$(CFG_HOST),$(eval $(call DEF_OSX_PKG,$(host),$(TARGET))))
|
|
|
|
endif
|
2014-03-21 23:31:52 +01:00
|
|
|
|
2014-03-21 20:50:29 +01:00
|
|
|
dist-osx: $(foreach host,$(CFG_HOST),dist/$(PKG_NAME)-$(host).pkg)
|
2014-02-25 17:47:58 +01:00
|
|
|
|
2014-03-21 23:21:45 +01:00
|
|
|
else
|
|
|
|
|
|
|
|
dist-osx:
|
|
|
|
|
2014-02-25 17:47:58 +01:00
|
|
|
endif
|
2014-03-02 06:38:13 +01:00
|
|
|
|
2014-03-21 23:21:45 +01:00
|
|
|
# FIXME should do something
|
2014-03-22 02:55:31 +01:00
|
|
|
distcheck-osx: dist-osx
|
2014-03-21 23:21:45 +01:00
|
|
|
|
2014-03-21 18:48:13 +01:00
|
|
|
|
|
|
|
######################################################################
|
|
|
|
# Unix binary installer tarballs
|
|
|
|
######################################################################
|
|
|
|
|
2014-07-23 02:17:57 +02:00
|
|
|
define DEF_INSTALLER
|
|
|
|
|
|
|
|
$$(eval $$(call DEF_PREPARE,dir-$(1)))
|
|
|
|
|
|
|
|
dist-install-dir-$(1): PREPARE_HOST=$(1)
|
2014-07-23 21:04:13 +02:00
|
|
|
dist-install-dir-$(1): PREPARE_TARGETS=$(2)
|
2014-07-23 02:17:57 +02:00
|
|
|
dist-install-dir-$(1): PREPARE_DEST_DIR=tmp/dist/$$(PKG_NAME)-$(1)
|
|
|
|
dist-install-dir-$(1): PREPARE_DIR_CMD=$(DEFAULT_PREPARE_DIR_CMD)
|
|
|
|
dist-install-dir-$(1): PREPARE_BIN_CMD=$(DEFAULT_PREPARE_BIN_CMD)
|
|
|
|
dist-install-dir-$(1): PREPARE_LIB_CMD=$(DEFAULT_PREPARE_LIB_CMD)
|
|
|
|
dist-install-dir-$(1): PREPARE_MAN_CMD=$(DEFAULT_PREPARE_MAN_CMD)
|
|
|
|
dist-install-dir-$(1): PREPARE_CLEAN=true
|
|
|
|
dist-install-dir-$(1): prepare-base-dir-$(1) docs compiler-docs
|
2014-03-27 04:53:57 +01:00
|
|
|
$$(Q)(cd $$(PREPARE_DEST_DIR)/ && find . -type f | sed 's/^\.\///') \
|
2014-03-27 02:51:55 +01:00
|
|
|
> tmp/dist/manifest-$(1).in
|
|
|
|
$$(Q)mv tmp/dist/manifest-$(1).in $$(PREPARE_DEST_DIR)/$$(CFG_LIBDIR_RELATIVE)/rustlib/manifest.in
|
2014-03-26 20:06:35 +01:00
|
|
|
# Add remaining non-installed files
|
2014-03-09 22:15:33 +01:00
|
|
|
$$(Q)$$(PREPARE_MAN_CMD) $$(S)COPYRIGHT $$(PREPARE_DEST_DIR)
|
|
|
|
$$(Q)$$(PREPARE_MAN_CMD) $$(S)LICENSE-APACHE $$(PREPARE_DEST_DIR)
|
|
|
|
$$(Q)$$(PREPARE_MAN_CMD) $$(S)LICENSE-MIT $$(PREPARE_DEST_DIR)
|
|
|
|
$$(Q)$$(PREPARE_MAN_CMD) $$(S)README.md $$(PREPARE_DEST_DIR)
|
2014-04-04 12:56:22 +02:00
|
|
|
$$(Q)cp -r doc $$(PREPARE_DEST_DIR)
|
2014-03-09 22:15:33 +01:00
|
|
|
$$(Q)$$(PREPARE_BIN_CMD) $$(S)src/etc/install.sh $$(PREPARE_DEST_DIR)
|
|
|
|
|
2014-03-21 20:50:29 +01:00
|
|
|
dist/$$(PKG_NAME)-$(1).tar.gz: dist-install-dir-$(1)
|
2014-03-09 22:15:33 +01:00
|
|
|
@$(call E, build: $$@)
|
2014-03-21 20:50:29 +01:00
|
|
|
$$(Q)tar -czf dist/$$(PKG_NAME)-$(1).tar.gz -C tmp/dist $$(PKG_NAME)-$(1)
|
2014-03-09 22:15:33 +01:00
|
|
|
|
2014-03-02 06:38:13 +01:00
|
|
|
endef
|
|
|
|
|
2014-07-23 21:04:13 +02:00
|
|
|
ifneq ($(CFG_ENABLE_DIST_HOST_ONLY),)
|
2014-03-02 06:38:13 +01:00
|
|
|
$(foreach host,$(CFG_HOST),\
|
2014-07-23 21:04:13 +02:00
|
|
|
$(eval $(call DEF_INSTALLER,$(host),$(host))))
|
|
|
|
else
|
|
|
|
$(foreach host,$(CFG_HOST),\
|
|
|
|
$(eval $(call DEF_INSTALLER,$(host),$(CFG_TARGET))))
|
|
|
|
endif
|
2014-03-21 18:48:13 +01:00
|
|
|
|
2014-03-21 23:15:45 +01:00
|
|
|
dist-install-dirs: $(foreach host,$(CFG_HOST),dist-install-dir-$(host))
|
|
|
|
|
|
|
|
dist-tar-bins: $(foreach host,$(CFG_HOST),dist/$(PKG_NAME)-$(host).tar.gz)
|
|
|
|
|
|
|
|
# Just try to run the compiler for the build host
|
|
|
|
distcheck-tar-bins: dist-tar-bins
|
|
|
|
@$(call E, checking binary tarball)
|
|
|
|
$(Q)rm -Rf tmp/distcheck/$(PKG_NAME)-$(CFG_BUILD)
|
|
|
|
$(Q)rm -Rf tmp/distcheck/tarbininstall
|
|
|
|
$(Q)mkdir -p tmp/distcheck
|
|
|
|
$(Q)cd tmp/distcheck && tar -xzf ../../dist/$(PKG_NAME)-$(CFG_BUILD).tar.gz
|
|
|
|
$(Q)mkdir -p tmp/distcheck/tarbininstall
|
|
|
|
$(Q)sh tmp/distcheck/$(PKG_NAME)-$(CFG_BUILD)/install.sh --prefix=tmp/distcheck/tarbininstall
|
2014-03-31 06:23:43 +02:00
|
|
|
$(Q)sh tmp/distcheck/$(PKG_NAME)-$(CFG_BUILD)/install.sh --prefix=tmp/distcheck/tarbininstall --uninstall
|
2014-03-21 23:15:45 +01:00
|
|
|
$(Q)rm -Rf tmp/distcheck/$(PKG_NAME)-$(CFG_BUILD)
|
|
|
|
$(Q)rm -Rf tmp/distcheck/tarbininstall
|
2014-03-21 18:48:13 +01:00
|
|
|
|
2014-03-21 21:37:09 +01:00
|
|
|
######################################################################
|
|
|
|
# Docs
|
|
|
|
######################################################################
|
|
|
|
|
|
|
|
# Just copy the docs to a folder under dist with the appropriate name
|
|
|
|
# for uploading to S3
|
|
|
|
dist-docs: docs compiler-docs
|
2014-03-21 23:21:45 +01:00
|
|
|
$(Q) rm -Rf dist/doc
|
2014-03-21 21:37:09 +01:00
|
|
|
$(Q) mkdir -p dist/doc/
|
|
|
|
$(Q) cp -r doc dist/doc/$(CFG_PACKAGE_VERS)
|
|
|
|
|
2014-03-24 21:13:12 +01:00
|
|
|
distcheck-docs: dist-docs
|
2014-03-21 21:37:09 +01:00
|
|
|
|
2014-03-21 18:48:13 +01:00
|
|
|
######################################################################
|
|
|
|
# Primary targets (dist, distcheck)
|
|
|
|
######################################################################
|
|
|
|
|
|
|
|
ifdef CFG_WINDOWSY_$(CFG_BUILD)
|
|
|
|
|
2014-09-30 00:29:10 +02:00
|
|
|
dist: dist-win dist-tar-bins
|
2014-03-21 18:48:13 +01:00
|
|
|
|
2014-03-22 02:55:31 +01:00
|
|
|
distcheck: distcheck-win
|
2014-03-21 23:15:45 +01:00
|
|
|
$(Q)rm -Rf tmp/distcheck
|
2014-03-21 18:48:13 +01:00
|
|
|
@echo
|
|
|
|
@echo -----------------------------------------------
|
2014-03-21 23:21:45 +01:00
|
|
|
@echo "Rust ready for distribution (see ./dist)"
|
2014-03-21 18:48:13 +01:00
|
|
|
@echo -----------------------------------------------
|
|
|
|
|
|
|
|
else
|
|
|
|
|
2014-03-31 09:05:41 +02:00
|
|
|
# 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
|
|
|
|
|
|
|
|
dist: $(MAYBE_DIST_TAR_SRC) dist-osx dist-tar-bins dist-docs
|
2014-03-21 18:48:13 +01:00
|
|
|
|
2014-03-31 09:05:41 +02:00
|
|
|
distcheck: $(MAYBE_DISTCHECK_TAR_SRC) distcheck-osx distcheck-tar-bins distcheck-docs
|
2014-03-21 23:15:45 +01:00
|
|
|
$(Q)rm -Rf tmp/distcheck
|
2014-03-21 18:48:13 +01:00
|
|
|
@echo
|
|
|
|
@echo -----------------------------------------------
|
2014-03-21 23:21:45 +01:00
|
|
|
@echo "Rust ready for distribution (see ./dist)"
|
2014-03-21 18:48:13 +01:00
|
|
|
@echo -----------------------------------------------
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
.PHONY: dist distcheck
|