@@ -231,12 +231,12 @@ doc/$(1)/rust.css: rust.css
231231DOCS += doc/$(1 ) /index.html
232232endef
233233
234- # The library documenting macro
235- # $(1) - The output directory
234+ # The "next generation" library documenting macro
235+ # $(1) - The crate name (std/extra)
236236# $(2) - The crate file
237- # $(3) - The crate soruce files
237+ # $(3) - The relevant host build triple (to depend on libstd)
238238define libdocng
239- doc/ng/$(1 ) /index.html: $( 2 ) $( 3 ) $$( RUSTDOC_NG )
239+ doc/ng/$(1 ) /index.html: $$( RUSTDOC_NG ) $$( TLIB2_T_ $( 3 ) _H_ $( 3 ) ) / $( CFG_STDLIB_ $( 3 ) )
240240 @$$(call E, rustdoc_ng: $$@ )
241241 $(Q )$(RUSTDOC_NG ) html $(2 ) -o doc/ng
242242
@@ -245,8 +245,8 @@ endef
245245
246246$(eval $(call libdoc,std,$(STDLIB_CRATE),$(STDLIB_INPUTS)))
247247$(eval $(call libdoc,extra,$(EXTRALIB_CRATE),$(EXTRALIB_INPUTS)))
248- $(eval $(call libdocng,std,$(STDLIB_CRATE),$(STDLIB_INPUTS )))
249- $(eval $(call libdocng,extra,$(EXTRALIB_CRATE),$(EXTRALIB_INPUTS )))
248+ $(eval $(call libdocng,std,$(STDLIB_CRATE),$(CFG_BUILD_TRIPLE )))
249+ $(eval $(call libdocng,extra,$(EXTRALIB_CRATE),$(CFG_BUILD_TRIPLE )))
250250endif
251251
252252
0 commit comments