mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +00:00
update build to make tarpl
This commit is contained in:
parent
e2b5f4fac4
commit
04578f6611
@ -77,7 +77,7 @@ ERR_IDX_GEN = $(RPATH_VAR2_T_$(CFG_BUILD)_H_$(CFG_BUILD)) $(ERR_IDX_GEN_EXE)
|
||||
|
||||
D := $(S)src/doc
|
||||
|
||||
DOC_TARGETS := trpl style error-index
|
||||
DOC_TARGETS := trpl tarpl style error-index
|
||||
COMPILER_DOC_TARGETS :=
|
||||
DOC_L10N_TARGETS :=
|
||||
|
||||
@ -287,6 +287,13 @@ doc/book/index.html: $(RUSTBOOK_EXE) $(wildcard $(S)/src/doc/trpl/*.md) | doc/
|
||||
$(Q)rm -rf doc/book
|
||||
$(Q)$(RUSTBOOK) build $(S)src/doc/trpl doc/book
|
||||
|
||||
tarpl: doc/adv-book/index.html
|
||||
|
||||
doc/adv-book/index.html: $(RUSTBOOK_EXE) $(wildcard $(S)/src/doc/tarpl/*.md) | doc/
|
||||
@$(call E, rustbook: $@)
|
||||
$(Q)rm -rf doc/adv-book
|
||||
$(Q)$(RUSTBOOK) build $(S)src/doc/tarpl doc/adv-book
|
||||
|
||||
style: doc/style/index.html
|
||||
|
||||
doc/style/index.html: $(RUSTBOOK_EXE) $(wildcard $(S)/src/doc/style/*.md) | doc/
|
||||
|
@ -162,7 +162,8 @@ $(foreach doc,$(DOCS), \
|
||||
$(eval $(call DOCTEST,md-$(doc),$(S)src/doc/$(doc).md)))
|
||||
$(foreach file,$(wildcard $(S)src/doc/trpl/*.md), \
|
||||
$(eval $(call DOCTEST,$(file:$(S)src/doc/trpl/%.md=trpl-%),$(file))))
|
||||
|
||||
$(foreach file,$(wildcard $(S)src/doc/tarpl/*.md), \
|
||||
$(eval $(call DOCTEST,$(file:$(S)src/doc/tarpl/%.md=tarpl-%),$(file))))
|
||||
######################################################################
|
||||
# Main test targets
|
||||
######################################################################
|
||||
|
Loading…
Reference in New Issue
Block a user