Skip to content

Commit e66c6cf

Browse files
committed
---
yaml --- r: 107119 b: refs/heads/try c: 8694c28 h: refs/heads/master i: 107117: fc36949 107115: ffa8ce7 107111: aca51c0 107103: 8f27436 v: v3
1 parent 51f224e commit e66c6cf

File tree

4 files changed

+16
-66
lines changed

4 files changed

+16
-66
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
refs/heads/master: b8ef9fd9c9f642ce7b8aed82782a1ed745d08d64
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: b8601a3d8b91ad3b653d143307611f2f5c75617e
5-
refs/heads/try: 805d0e53fd174eb2ba1f14b69db797a386d98f13
5+
refs/heads/try: 8694c287628a2bcb1af2ba30bf778bfdd9ad0091
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c

branches/try/Makefile.in

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -232,19 +232,20 @@ ifneq ($(strip $(findstring prepare,$(MAKECMDGOALS)) \
232232
include $(CFG_SRC_DIR)mk/prepare.mk
233233
endif
234234

235-
# (Unix) Installation from the build directory
236-
ifneq ($(findstring install,$(MAKECMDGOALS)),)
237-
CFG_INFO := $(info cfg: including install rules)
238-
include $(CFG_SRC_DIR)mk/install.mk
239-
endif
240-
241235
# Source and binary distribution artifacts
242236
ifneq ($(strip $(findstring dist,$(MAKECMDGOALS)) \
237+
$(findstring install,$(MAKECMDGOALS)) \
243238
$(findstring clean,$(MAKECMDGOALS))),)
244239
CFG_INFO := $(info cfg: including dist rules)
245240
include $(CFG_SRC_DIR)mk/dist.mk
246241
endif
247242

243+
# (Unix) Installation from the build directory
244+
ifneq ($(findstring install,$(MAKECMDGOALS)),)
245+
CFG_INFO := $(info cfg: including install rules)
246+
include $(CFG_SRC_DIR)mk/install.mk
247+
endif
248+
248249
# Cleaning
249250
ifneq ($(findstring clean,$(MAKECMDGOALS)),)
250251
CFG_INFO := $(info cfg: including clean rules)

branches/try/mk/dist.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
# * dist-tar-bins - Ad-hoc Unix binary installers
2323
# * dist-docs - Stage docs for upload
2424

25-
PKG_NAME = $(CFG_PACKAGE_NAME)
25+
PKG_NAME := $(CFG_PACKAGE_NAME)
2626

2727
PKG_GITMODULES := $(S)src/libuv $(S)src/llvm $(S)src/gyp $(S)src/compiler-rt
2828
PKG_FILES := \

branches/try/mk/install.mk

Lines changed: 7 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -8,68 +8,17 @@
88
# option. This file may not be copied, modified, or distributed
99
# except according to those terms.
1010

11-
# FIXME: Docs are currently not installed from the stageN dirs.
12-
# For consistency it might be desirable for stageN to be an exact
13-
# mirror of the installation directory structure.
1411

15-
# The stage we install from
16-
ISTAGE = $(PREPARE_STAGE)
12+
install: dist-install-dir-$(CFG_BUILD)
13+
$(Q)sh tmp/dist/$(PKG_NAME)-$(CFG_BUILD)/install.sh --prefix="$(CFG_PREFIX)"
1714

18-
install: PREPARE_HOST=$(CFG_BUILD)
19-
install: PREPARE_TARGETS=$(CFG_TARGET)
20-
install: PREPARE_DIR_CMD=$(DEFAULT_PREPARE_DIR_CMD)
21-
install: PREPARE_BIN_CMD=$(DEFAULT_PREPARE_BIN_CMD)
22-
install: PREPARE_LIB_CMD=$(DEFAULT_PREPARE_LIB_CMD)
23-
install: PREPARE_MAN_CMD=$(DEFAULT_PREPARE_MAN_CMD)
24-
install: PREPARE_SOURCE_DIR=$(PREPARE_HOST)/stage$(PREPARE_STAGE)
25-
install: PREPARE_SOURCE_BIN_DIR=$(PREPARE_SOURCE_DIR)/bin
26-
install: PREPARE_SOURCE_LIB_DIR=$(PREPARE_SOURCE_DIR)/$(CFG_LIBDIR_RELATIVE)
27-
install: PREPARE_SOURCE_MAN_DIR=$(S)/man
28-
install: PREPARE_DEST_BIN_DIR=$(DESTDIR)$(CFG_PREFIX)/bin
29-
install: PREPARE_DEST_LIB_DIR=$(DESTDIR)$(CFG_LIBDIR)
30-
install: PREPARE_DEST_MAN_DIR=$(DESTDIR)$(CFG_MANDIR)/man1
31-
install: prepare-everything
15+
uninstall: dist-install-dir-$(CFG_BUILD)
16+
$(Q)sh tmp/dist/$(PKG_NAME)-$(CFG_BUILD)/install.sh --prefix="$(CFG_PREFIX)" --uninstall
3217

3318

34-
# Uninstall code
35-
36-
PREFIX_ROOT = $(CFG_PREFIX)
37-
PREFIX_BIN = $(PREFIX_ROOT)/bin
38-
PREFIX_LIB = $(CFG_LIBDIR)
39-
40-
INSTALL_TOOLS := $(PREPARE_TOOLS)
41-
42-
# Shorthand for build/stageN/bin
43-
HB = $(HBIN$(ISTAGE)_H_$(CFG_BUILD))
44-
HB2 = $(HBIN2_H_$(CFG_BUILD))
45-
# Shorthand for build/stageN/lib
46-
HL = $(HLIB$(ISTAGE)_H_$(CFG_BUILD))
47-
# Shorthand for the prefix bin directory
48-
PHB = $(PREFIX_BIN)
49-
# Shorthand for the prefix bin directory
50-
PHL = $(PREFIX_LIB)
51-
52-
HOST_LIB_FROM_HL_GLOB = \
53-
$(patsubst $(HL)/%,$(PHL)/%,$(wildcard $(HL)/$(1)))
54-
55-
uninstall: $(foreach tool,$(INSTALL_TOOLS),uninstall-tool-$(tool))
56-
$(Q)rm -Rf $(PHL)/$(CFG_RUSTLIBDIR)
57-
58-
define UNINSTALL_TOOL
59-
uninstall-tool-$(1): $$(foreach dep,$$(TOOL_DEPS_$(1)),uninstall-lib-$$(dep))
60-
$$(Q)rm -f $$(PHB)/$(1)$$(X_$$(CFG_BUILD))
61-
$$(Q)rm -f $$(CFG_MANDIR)/man1/$(1).1
62-
endef
63-
64-
$(foreach tool,$(INSTALL_TOOLS),$(eval $(call UNINSTALL_TOOL,$(tool))))
65-
66-
define UNINSTALL_LIB
67-
uninstall-lib-$(1): $$(foreach dep,$$(RUST_DEPS_$(1)),uninstall-lib-$$(dep))
68-
$$(Q)rm -f $$(call HOST_LIB_FROM_HL_GLOB,$$(call CFG_LIB_GLOB_$$(CFG_BUILD),$(1)))
69-
endef
70-
71-
$(foreach lib,$(CRATES),$(eval $(call UNINSTALL_LIB,$(lib))))
72-
19+
######################################################################
20+
# Android remote installation
21+
######################################################################
7322

7423
# Android runtime setup
7524
# FIXME: This probably belongs somewhere else

0 commit comments

Comments
 (0)