]> git.lizzy.rs Git - rust.git/commitdiff
doc: build the docs for librustpkg
authorKevin Ballard <kevin@sb.org>
Sun, 12 Jan 2014 01:23:55 +0000 (17:23 -0800)
committerKevin Ballard <kevin@sb.org>
Sun, 12 Jan 2014 03:13:59 +0000 (19:13 -0800)
.gitignore
doc/index.md
mk/docs.mk

index c70dfb2a02c200a4a32ecfa23a43d456097ad24f..37a98c45a6bafe74a7dc563a27b9b74e22127688 100644 (file)
@@ -80,6 +80,7 @@ src/.DS_Store
 /doc/rustc
 /doc/syntax
 /doc/rustuv
+/doc/rustpkg
 /nd/
 /llvm/
 version.md
index 04682a56e97481f200034e25f889d59e26f921b8..39d535a5aebd28a88c4195e7b5e37fcc4607d148 100644 (file)
@@ -29,6 +29,8 @@
 [The M:N runtime library, `libgreen`](green/index.html)
 [The 1:1 runtime library, `libnative`](native/index.html)
 
+[The Rust packaging library, `librustpkg`](rustpkg/index.html)
+
 [The Rust parser, `libsyntax`](syntax/index.html)
 [The Rust compiler, `librustc`](rustc/index.html)
 
index d01ebb437702d92e9522e8bc44bcdf3edf07df1c..1982ab0050c13cdc5207499229a0d93fdb189dc9 100644 (file)
@@ -289,7 +289,8 @@ RUSTDOC = $(HBIN2_H_$(CFG_BUILD))/rustdoc$(X_$(CFG_BUILD))
 #
 # Passes --cfg stage2 to rustdoc because it uses the stage2 librustc.
 define libdoc
-doc/$(1)/index.html: $$(RUSTDOC) $$(TLIB2_T_$(3)_H_$(3))/$(CFG_STDLIB_$(3))
+doc/$(1)/index.html: $$(RUSTDOC) $$(TLIB2_T_$(3)_H_$(3))/$(CFG_STDLIB_$(3)) \
+               $(foreach name,$(4),$$(TLIB2_T_$(3)_H_$(3))/$$(CFG_$(name)_$(3)))
        @$$(call E, rustdoc: $$@)
        $(Q)$(RUSTDOC) --cfg stage2 $(2)
 
@@ -309,6 +310,7 @@ $(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,rustuv,$(LIBRUSTUV_CRATE),$(CFG_BUILD)))
+$(eval $(call libdoc,rustpkg,$(RUSTPKG_LIB),$(CFG_BUILD),EXTRALIB LIBRUSTC))
 
 $(eval $(call compiledoc,rustc,$(COMPILER_CRATE),$(CFG_BUILD)))
 $(eval $(call compiledoc,syntax,$(LIBSYNTAX_CRATE),$(CFG_BUILD)))