Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
int
Rust
提交
8694c287
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,发现更多精彩内容 >>
提交
8694c287
编写于
3月 21, 2014
作者:
B
Brian Anderson
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
mk: Run 'make install' through install.sh
上级
805d0e53
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
15 addition
and
65 deletion
+15
-65
Makefile.in
Makefile.in
+7
-6
mk/dist.mk
mk/dist.mk
+1
-1
mk/install.mk
mk/install.mk
+7
-58
未找到文件。
Makefile.in
浏览文件 @
8694c287
...
...
@@ -232,19 +232,20 @@ ifneq ($(strip $(findstring prepare,$(MAKECMDGOALS)) \
include
$(CFG_SRC_DIR)mk/prepare.mk
endif
# (Unix) Installation from the build directory
ifneq
($(findstring install,$(MAKECMDGOALS)),)
CFG_INFO
:=
$
(
info cfg: including
install
rules
)
include
$(CFG_SRC_DIR)mk/install.mk
endif
# Source and binary distribution artifacts
ifneq
($(strip $(findstring dist,$(MAKECMDGOALS)) \
$(findstring
install,$(MAKECMDGOALS))
\
$(findstring
clean,$(MAKECMDGOALS))),)
CFG_INFO
:=
$
(
info cfg: including dist rules
)
include
$(CFG_SRC_DIR)mk/dist.mk
endif
# (Unix) Installation from the build directory
ifneq
($(findstring install,$(MAKECMDGOALS)),)
CFG_INFO
:=
$
(
info cfg: including
install
rules
)
include
$(CFG_SRC_DIR)mk/install.mk
endif
# Cleaning
ifneq
($(findstring clean,$(MAKECMDGOALS)),)
CFG_INFO
:=
$
(
info cfg: including clean rules
)
...
...
mk/dist.mk
浏览文件 @
8694c287
...
...
@@ -22,7 +22,7 @@
# * dist-tar-bins - Ad-hoc Unix binary installers
# * dist-docs - Stage docs for upload
PKG_NAME
=
$(CFG_PACKAGE_NAME)
PKG_NAME
:
=
$(CFG_PACKAGE_NAME)
PKG_GITMODULES
:=
$(S)
src/libuv
$(S)
src/llvm
$(S)
src/gyp
$(S)
src/compiler-rt
PKG_FILES
:=
\
...
...
mk/install.mk
浏览文件 @
8694c287
...
...
@@ -8,68 +8,17 @@
# option. This file may not be copied, modified, or distributed
# except according to those terms.
# FIXME: Docs are currently not installed from the stageN dirs.
# For consistency it might be desirable for stageN to be an exact
# mirror of the installation directory structure.
# The stage we install from
ISTAGE
=
$(PREPARE_STAGE)
install
:
dist-install-dir-$(CFG_BUILD)
$(Q)
sh tmp/dist/
$(PKG_NAME)
-
$(CFG_BUILD)
/install.sh
--prefix
=
"
$(CFG_PREFIX)
"
install
:
PREPARE_HOST=$(CFG_BUILD)
install
:
PREPARE_TARGETS=$(CFG_TARGET)
install
:
PREPARE_DIR_CMD=$(DEFAULT_PREPARE_DIR_CMD)
install
:
PREPARE_BIN_CMD=$(DEFAULT_PREPARE_BIN_CMD)
install
:
PREPARE_LIB_CMD=$(DEFAULT_PREPARE_LIB_CMD)
install
:
PREPARE_MAN_CMD=$(DEFAULT_PREPARE_MAN_CMD)
install
:
PREPARE_SOURCE_DIR=$(PREPARE_HOST)/stage$(PREPARE_STAGE)
install
:
PREPARE_SOURCE_BIN_DIR=$(PREPARE_SOURCE_DIR)/bin
install
:
PREPARE_SOURCE_LIB_DIR=$(PREPARE_SOURCE_DIR)/$(CFG_LIBDIR_RELATIVE)
install
:
PREPARE_SOURCE_MAN_DIR=$(S)/man
install
:
PREPARE_DEST_BIN_DIR=$(DESTDIR)$(CFG_PREFIX)/bin
install
:
PREPARE_DEST_LIB_DIR=$(DESTDIR)$(CFG_LIBDIR)
install
:
PREPARE_DEST_MAN_DIR=$(DESTDIR)$(CFG_MANDIR)/man1
install
:
prepare-everything
uninstall
:
dist-install-dir-$(CFG_BUILD)
$(Q)
sh tmp/dist/
$(PKG_NAME)
-
$(CFG_BUILD)
/install.sh
--prefix
=
"
$(CFG_PREFIX)
"
--uninstall
# Uninstall code
PREFIX_ROOT
=
$(CFG_PREFIX)
PREFIX_BIN
=
$(PREFIX_ROOT)
/bin
PREFIX_LIB
=
$(CFG_LIBDIR)
INSTALL_TOOLS
:=
$(PREPARE_TOOLS)
# Shorthand for build/stageN/bin
HB
=
$
(
HBIN
$(ISTAGE)
_H_
$(CFG_BUILD)
)
HB2
=
$
(
HBIN2_H_
$(CFG_BUILD)
)
# Shorthand for build/stageN/lib
HL
=
$
(
HLIB
$(ISTAGE)
_H_
$(CFG_BUILD)
)
# Shorthand for the prefix bin directory
PHB
=
$(PREFIX_BIN)
# Shorthand for the prefix bin directory
PHL
=
$(PREFIX_LIB)
HOST_LIB_FROM_HL_GLOB
=
\
$(
patsubst
$(HL)
/%,
$(PHL)
/%,
$(
wildcard
$(HL)
/
$(1)
))
uninstall
:
$(foreach tool
,
$(INSTALL_TOOLS)
,
uninstall-tool-$(tool))
$(Q)
rm
-Rf
$(PHL)
/
$(CFG_RUSTLIBDIR)
define
UNINSTALL_TOOL
uninstall-tool-$(1)
:
$$(foreach dep
,
$$(TOOL_DEPS_$(1))
,
uninstall-lib-$$(dep))
$
$(Q)
rm
-f
$
$(PHB)
/
$(1)
$$
(
X_
$
$(CFG_BUILD)
)
$
$(Q)
rm
-f
$
$(CFG_MANDIR)
/man1/
$(1)
.1
endef
$(foreach
tool,$(INSTALL_TOOLS),$(eval
$(call
UNINSTALL_TOOL,$(tool))))
define
UNINSTALL_LIB
uninstall-lib-$(1)
:
$$(foreach dep
,
$$(RUST_DEPS_$(1))
,
uninstall-lib-$$(dep))
$
$(Q)
rm
-f
$
$(
call
HOST_LIB_FROM_HL_GLOB,
$
$(
call
CFG_LIB_GLOB_
$
$(CFG_BUILD)
,
$(1)
))
endef
$(foreach
lib,$(CRATES),$(eval
$(call
UNINSTALL_LIB,$(lib))))
######################################################################
# Android remote installation
######################################################################
# Android runtime setup
# FIXME: This probably belongs somewhere else
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录