mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 16:24:46 +00:00
Add a compiler-docs target
This commit is contained in:
parent
8ca1c344d5
commit
e53e86a3f3
15
mk/docs.mk
15
mk/docs.mk
@ -13,6 +13,7 @@
|
||||
######################################################################
|
||||
|
||||
DOCS :=
|
||||
CDOCS :=
|
||||
DOCS_L10N :=
|
||||
|
||||
BASE_DOC_OPTS := --from=markdown --standalone --toc --number-sections
|
||||
@ -232,12 +233,21 @@ doc/$(1)/index.html: $$(RUSTDOC) $$(TLIB2_T_$(3)_H_$(3))/$(CFG_STDLIB_$(3))
|
||||
DOCS += doc/$(1)/index.html
|
||||
endef
|
||||
|
||||
define compiledoc
|
||||
doc/$(1)/index.html: $$(RUSTDOC) $$(TLIB2_T_$(3)_H_$(3))/$(CFG_STDLIB_$(3))
|
||||
@$$(call E, rustdoc: $$@)
|
||||
$(Q)$(RUSTDOC) --cfg stage2 $(2)
|
||||
|
||||
CDOCS += doc/$(1)/index.html
|
||||
endef
|
||||
|
||||
$(eval $(call libdoc,std,$(STDLIB_CRATE),$(CFG_BUILD)))
|
||||
$(eval $(call libdoc,extra,$(EXTRALIB_CRATE),$(CFG_BUILD)))
|
||||
$(eval $(call libdoc,native,$(LIBNATIVE_CRATE),$(CFG_BUILD)))
|
||||
$(eval $(call libdoc,green,$(LIBGREEN_CRATE),$(CFG_BUILD)))
|
||||
$(eval $(call libdoc,rustc,$(COMPILER_CRATE),$(CFG_BUILD)))
|
||||
$(eval $(call libdoc,syntax,$(LIBSYNTAX_CRATE),$(CFG_BUILD)))
|
||||
|
||||
$(eval $(call compiledoc,rustc,$(COMPILER_CRATE),$(CFG_BUILD)))
|
||||
$(eval $(call compiledoc,syntax,$(LIBSYNTAX_CRATE),$(CFG_BUILD)))
|
||||
|
||||
|
||||
ifdef CFG_DISABLE_DOCS
|
||||
@ -260,6 +270,7 @@ doc/version_info.html: version_info.html.template $(MKFILE_DEPS) \
|
||||
GENERATED += doc/version.md doc/version_info.html
|
||||
|
||||
docs: $(DOCS)
|
||||
compiler-docs: $(CDOCS)
|
||||
|
||||
docs-l10n: $(DOCS_L10N)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user