Skip to content

Commit 623263f

Browse files
committed
---
yaml --- r: 6887 b: refs/heads/master c: 51a9274 h: refs/heads/master i: 6885: beca08f 6883: 79b5efc 6879: 33d5312 v: v3
1 parent 7d9c031 commit 623263f

File tree

4 files changed

+23
-2
lines changed

4 files changed

+23
-2
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: cab4da70c8577ee7525fb327e7ae79ef9f9e96e5
2+
refs/heads/master: 51a9274cf6b44e22d68398ac79549afafc10c0a0

trunk/Makefile.in

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,8 +431,9 @@ TSREQS := \
431431
$(SREQ3_T_$(target)_H_$(CFG_HOST_TRIPLE)))
432432
FUZZ := $(HBIN3_H_$(CFG_HOST_TRIPLE))/fuzzer$(X)
433433
CARGO := $(HBIN3_H_$(CFG_HOST_TRIPLE))/cargo$(X)
434+
RUSTDOC := $(HBIN3_H_$(CFG_HOST_TRIPLE))/rustdoc$(X)
434435

435-
all: rustc $(GENERATED) $(DOCS) $(FUZZ) $(CARGO)
436+
all: rustc $(GENERATED) $(DOCS) $(FUZZ) $(CARGO) $(RUSTDOC)
436437

437438
endif
438439

trunk/mk/install.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ install-host: $(SREQ$(ISTAGE)_T_$(CFG_HOST_TRIPLE)_H_$(CFG_HOST_TRIPLE))
6969
$(Q)mkdir -p $(PREFIX_ROOT)/share/man/man1
7070
$(Q)$(call INSTALL,$(HB),$(PHB),rustc$(X))
7171
$(Q)$(call INSTALL,$(HB),$(PHB),cargo$(X))
72+
$(Q)$(call INSTALL,$(HB),$(PHB),rustdoc$(X))
7273
$(Q)$(call INSTALL,$(HL),$(PHL),$(CFG_RUNTIME))
7374
$(Q)$(call INSTALL_LIB,$(HL),$(PHL),$(CORELIB_GLOB))
7475
$(Q)$(call INSTALL_LIB,$(HL),$(PHL),$(STDLIB_GLOB))

trunk/mk/tools.mk

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ COMPILETEST_INPUTS := $(wildcard $(S)src/compiletest/*rs)
1212
CARGO_CRATE := $(S)src/cargo/cargo.rc
1313
CARGO_INPUTS := $(wildcard $(S)src/cargo/*rs)
1414

15+
# Rustdoc, the documentation tool
16+
RUSTDOC_CRATE := $(wildcard $(S)src/rustdoc/.rc)
17+
RUSTDOC_INPUTS := $(wildcard $(S)src/rustdoc/*.rs)
18+
1519
# FIXME: These are only built for the host arch. Eventually we'll
1620
# have tools that need to built for other targets.
1721
define TOOLS_STAGE_N
@@ -64,6 +68,21 @@ $$(HBIN$(2)_H_$(4))/cargo$$(X): \
6468
@$$(call E, cp: $$@)
6569
$$(Q)cp $$< $$@
6670

71+
$$(TBIN$(1)_T_$(4)_H_$(3))/rustdoc$$(X): \
72+
$$(RUSTDOC_CRATE) $$(RUSTDOC_INPUTS) \
73+
$$(TSREQ$(1)_T_$(4)_H_$(3)) \
74+
$$(TLIB$(1)_T_$(4)_H_$(3))/$$(CFG_CORELIB) \
75+
$$(TLIB$(1)_T_$(4)_H_$(3))/$$(CFG_STDLIB) \
76+
$$(TLIB$(1)_T_$(4)_H_$(3))/$$(CFG_LIBRUSTC)
77+
@$$(call E, compile_and_link: $$@)
78+
$$(STAGE$(1)_T_$(4)_H_$(3)) -o $$@ $$<
79+
80+
$$(HBIN$(2)_H_$(4))/rustdoc$$(X): \
81+
$$(TBIN$(1)_T_$(4)_H_$(3))/rustdoc$$(X) \
82+
$$(HSREQ$(2)_$(4))
83+
@$$(call E, cp: $$@)
84+
$$(Q)cp $$< $$@
85+
6786
endef
6887

6988
$(foreach host,$(CFG_TARGET_TRIPLES), \

0 commit comments

Comments
 (0)