mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +00:00
mk: Base the windows dist target on prepare.mk
This commit is contained in:
parent
8f2bee2117
commit
508cb29dc4
@ -222,6 +222,7 @@ endif
|
|||||||
|
|
||||||
# Copy all the distributables to another directory for binary install
|
# Copy all the distributables to another directory for binary install
|
||||||
ifneq ($(strip $(findstring prepare,$(MAKECMDGOALS)) \
|
ifneq ($(strip $(findstring prepare,$(MAKECMDGOALS)) \
|
||||||
|
$(findstring dist,$(MAKECMDGOALS)) \
|
||||||
$(findstring install,$(MAKECMDGOALS))),)
|
$(findstring install,$(MAKECMDGOALS))),)
|
||||||
CFG_INFO := $(info cfg: including prepare rules)
|
CFG_INFO := $(info cfg: including prepare rules)
|
||||||
include $(CFG_SRC_DIR)mk/prepare.mk
|
include $(CFG_SRC_DIR)mk/prepare.mk
|
||||||
|
18
mk/dist.mk
18
mk/dist.mk
@ -52,12 +52,24 @@ LICENSE.txt: $(S)COPYRIGHT $(S)LICENSE-APACHE $(S)LICENSE-MIT
|
|||||||
cp $< $@
|
cp $< $@
|
||||||
|
|
||||||
$(PKG_EXE): rust.iss modpath.iss LICENSE.txt rust-logo.ico \
|
$(PKG_EXE): rust.iss modpath.iss LICENSE.txt rust-logo.ico \
|
||||||
$(PKG_FILES) $(CSREQ3_T_$(CFG_BUILD)_H_$(CFG_BUILD))
|
$(PKG_FILES) $(CSREQ3_T_$(CFG_BUILD)_H_$(CFG_BUILD)) \
|
||||||
$(CFG_PYTHON) $(S)src/etc/copy-runtime-deps.py i686-pc-mingw32/stage3/bin
|
dist-prepare-win
|
||||||
|
$(CFG_PYTHON) $(S)src/etc/copy-runtime-deps.py tmp/dist/win/bin
|
||||||
@$(call E, ISCC: $@)
|
@$(call E, ISCC: $@)
|
||||||
$(Q)"$(CFG_ISCC)" $<
|
$(Q)"$(CFG_ISCC)" $<
|
||||||
endif
|
|
||||||
|
|
||||||
|
dist-prepare-win: PREPARE_HOST=$(CFG_BUILD)
|
||||||
|
dist-prepare-win: PREPARE_TARGETS=$(CFG_BUILD)
|
||||||
|
dist-prepare-win: PREPARE_DEST_DIR=tmp/dist/win
|
||||||
|
# On windows we're using stage3, unlike Unix...
|
||||||
|
dist-prepare-win: PREPARE_STAGE=3
|
||||||
|
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-base
|
||||||
|
|
||||||
|
endif
|
||||||
|
|
||||||
$(PKG_TAR): $(PKG_FILES)
|
$(PKG_TAR): $(PKG_FILES)
|
||||||
@$(call E, making dist dir)
|
@$(call E, making dist dir)
|
||||||
|
@ -36,7 +36,7 @@ Uninstallable=yes
|
|||||||
Name: modifypath; Description: &Add {app}\bin to your PATH (recommended)
|
Name: modifypath; Description: &Add {app}\bin to your PATH (recommended)
|
||||||
|
|
||||||
[Files]
|
[Files]
|
||||||
Source: "i686-pc-mingw32/stage3/*.*" ; DestDir: "{app}"; Flags: ignoreversion recursesubdirs
|
Source: "tmp/dist/win/*.*" ; DestDir: "{app}"; Flags: ignoreversion recursesubdirs
|
||||||
|
|
||||||
[Code]
|
[Code]
|
||||||
const
|
const
|
||||||
|
Loading…
Reference in New Issue
Block a user