Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
int
Rust
提交
df141e62
R
Rust
项目概览
int
/
Rust
大约 1 年 前同步成功
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
Rust
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
df141e62
编写于
3月 21, 2014
作者:
B
Brian Anderson
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
mk: Reorder definitions in dist.mk
Just to be more logical, put big headers between different installers
上级
e30ab71e
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
77 addition
and
52 deletion
+77
-52
mk/dist.mk
mk/dist.mk
+77
-52
未找到文件。
mk/dist.mk
浏览文件 @
df141e62
...
...
@@ -48,31 +48,10 @@ UNROOTED_PKG_FILES := $(patsubst $(S)%,./%,$(PKG_FILES))
LICENSE.txt
:
$(S)COPYRIGHT $(S)LICENSE-APACHE $(S)LICENSE-MIT
cat
$^
>
$@
ifdef
CFG_ISCC
%.iss
:
$(S)src/etc/pkg/%.iss
cp
$<
$@
%.ico
:
$(S)src/etc/pkg/%.ico
cp
$<
$@
$(PKG_EXE)
:
rust.iss modpath.iss LICENSE.txt rust-logo.ico
\
$(PKG_FILES) $(CSREQ3_T_$(CFG_BUILD)_H_$(CFG_BUILD))
\
dist-prepare-win
$(CFG_PYTHON)
$(S)
src/etc/copy-runtime-deps.py tmp/dist/win/bin
@
$(
call
E, ISCC:
$@
)
$(Q)
"
$(CFG_ISCC)
"
$<
dist-prepare-win
:
PREPARE_HOST=$(CFG_BUILD)
dist-prepare-win
:
PREPARE_TARGETS=$(CFG_BUILD)
dist-prepare-win
:
PREPARE_DEST_DIR=tmp/dist/win
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
dist-prepare-win
:
prepare-base
endif
######################################################################
# Source tarball
######################################################################
$(PKG_TAR)
:
$(PKG_FILES)
@
$(
call
E, making dist
dir
)
...
...
@@ -92,42 +71,42 @@ $(PKG_TAR): $(PKG_FILES)
$(Q)
tar
-czf
$(PKG_TAR)
-C
tmp/dist
$(PKG_DIR)
$(Q)
rm
-Rf
tmp/dist/
$(PKG_DIR)
.PHONY
:
dist distcheck
ifdef
CFG_WINDOWSY_$(CFG_BUILD)
dist
:
$(PKG_EXE)
######################################################################
# Windows .exe installer
######################################################################
distcheck
:
dist
@
echo
@
echo
-----------------------------------------------
@
echo
$(PKG_EXE)
ready
for
distribution
@
echo
-----------------------------------------------
ifdef
CFG_ISCC
%.iss
:
$(S)src/etc/pkg/%.iss
cp
$<
$@
else
%.ico
:
$(S)src/etc/pkg/%.ico
cp
$<
$@
dist
:
$(PKG_TAR)
$(PKG_EXE)
:
rust.iss modpath.iss LICENSE.txt rust-logo.ico
\
$(PKG_FILES) $(CSREQ3_T_$(CFG_BUILD)_H_$(CFG_BUILD))
\
dist-prepare-win
$(CFG_PYTHON)
$(S)
src/etc/copy-runtime-deps.py tmp/dist/win/bin
@
$(
call
E, ISCC:
$@
)
$(Q)
"
$(CFG_ISCC)
"
$<
distcheck
:
$(PKG_TAR)
$(Q)
rm
-Rf
dist
$(Q)
mkdir
-p
dist
@
$(
call
E, unpacking
$(PKG_TAR)
in
dist/
$(PKG_DIR)
)
$(Q)
cd
dist
&&
tar
-xzf
../
$(PKG_TAR)
@
$(
call
E, configuring
in
dist/
$(PKG_DIR)
-build
)
$(Q)
mkdir
-p
dist/
$(PKG_DIR)
-build
$(Q)
cd
dist/
$(PKG_DIR)
-build
&&
../
$(PKG_DIR)
/configure
@
$(
call
E, making
'check'
in
dist/
$(PKG_DIR)
-build
)
$(Q)
+make
-C
dist/
$(PKG_DIR)
-build
check
@
$(
call
E, making
'clean'
in
dist/
$(PKG_DIR)
-build
)
$(Q)
+make
-C
dist/
$(PKG_DIR)
-build
clean
$(Q)
rm
-Rf
dist
@
echo
@
echo
-----------------------------------------------
@
echo
$(PKG_TAR)
ready
for
distribution
@
echo
-----------------------------------------------
dist-prepare-win
:
PREPARE_HOST=$(CFG_BUILD)
dist-prepare-win
:
PREPARE_TARGETS=$(CFG_BUILD)
dist-prepare-win
:
PREPARE_DEST_DIR=tmp/dist/win
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
dist-prepare-win
:
prepare-base
endif
######################################################################
# OS X .pkg installer
######################################################################
ifeq
($(CFG_OSTYPE), apple-darwin)
dist-prepare-osx
:
PREPARE_HOST=$(CFG_BUILD)
...
...
@@ -155,6 +134,11 @@ distcheck-osx: $(PKG_OSX)
endif
######################################################################
# Unix binary installer tarballs
######################################################################
dist-install-dir
:
$(foreach host
,
$(CFG_HOST)
,
dist-install-dir-$(host))
dist-tar-bins
:
$(foreach host
,
$(CFG_HOST)
,
dist/$(PKG_DIR)-$(host).tar.gz)
...
...
@@ -185,3 +169,44 @@ endef
$(foreach
host,$(CFG_HOST),\
$(eval
$(call
DEF_INSTALLER,$(host))))
######################################################################
# Primary targets (dist, distcheck)
######################################################################
ifdef
CFG_WINDOWSY_$(CFG_BUILD)
dist
:
$(PKG_EXE)
distcheck
:
dist
@
echo
@
echo
-----------------------------------------------
@
echo
$(PKG_EXE)
ready
for
distribution
@
echo
-----------------------------------------------
else
dist
:
$(PKG_TAR)
distcheck
:
$(PKG_TAR)
$(Q)
rm
-Rf
dist
$(Q)
mkdir
-p
dist
@
$(
call
E, unpacking
$(PKG_TAR)
in
dist/
$(PKG_DIR)
)
$(Q)
cd
dist
&&
tar
-xzf
../
$(PKG_TAR)
@
$(
call
E, configuring
in
dist/
$(PKG_DIR)
-build
)
$(Q)
mkdir
-p
dist/
$(PKG_DIR)
-build
$(Q)
cd
dist/
$(PKG_DIR)
-build
&&
../
$(PKG_DIR)
/configure
@
$(
call
E, making
'check'
in
dist/
$(PKG_DIR)
-build
)
$(Q)
+make
-C
dist/
$(PKG_DIR)
-build
check
@
$(
call
E, making
'clean'
in
dist/
$(PKG_DIR)
-build
)
$(Q)
+make
-C
dist/
$(PKG_DIR)
-build
clean
$(Q)
rm
-Rf
dist
@
echo
@
echo
-----------------------------------------------
@
echo
$(PKG_TAR)
ready
for
distribution
@
echo
-----------------------------------------------
endif
.PHONY
:
dist distcheck
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录