Skip to content

Commit d611067

Browse files
committed
Add more comments to install.mk
1 parent 28051a8 commit d611067

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

mk/install.mk

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# FIXME: Docs are currently not installed from the stageN dirs.
2+
# For consistency it might be desirable for stageN to be an exact
3+
# mirror of the installation directory structure.
4+
5+
# Installation macro. Call with source directory as arg 1,
6+
# destination directory as arg 2, and filename as arg 3
17
ifdef VERBOSE
28
INSTALL = cp $(1)/$(3) $(2)/$(3)
39
else
@@ -11,9 +17,13 @@ PREFIX_ROOT = $(CFG_PREFIX)
1117
PREFIX_BIN = $(PREFIX_ROOT)/bin
1218
PREFIX_LIB = $(PREFIX_ROOT)/lib
1319

20+
# Shorthand for build/stageN/bin
1421
HB = $(HOST_BIN$(ISTAGE))
22+
# Shorthand for build/stageN/lib
1523
HL = $(HOST_LIB$(ISTAGE))
24+
# Shorthand for the prefix bin directory
1625
PHB = $(PREFIX_BIN)
26+
# Shorthand for the prefix bin directory
1727
PHL = $(PREFIX_LIB)
1828

1929
define INSTALL_TARGET_N
@@ -22,6 +32,7 @@ PREFIX_TARGET_ROOT$(1) = $$(PREFIX_LIB)/rustc/$(1)
2232
PREFIX_TARGET_BIN$(1) = $$(PREFIX_TARGET_ROOT$(1))/bin
2333
PREFIX_TARGET_LIB$(1) = $$(PREFIX_TARGET_ROOT$(1))/lib
2434

35+
# Similar to the H* macros above but for each target triple
2536
TB$(1) = $$(TARGET_BIN$$(ISTAGE)$(1))
2637
TL$(1) = $$(TARGET_LIB$$(ISTAGE)$(1))
2738
PTB$(1) = $$(PREFIX_TARGET_BIN$(1))

0 commit comments

Comments
 (0)