26e1ce7394
apparently I missed some tests in the last commit. Rather than having dozens of tests use the long version, use the short version in `run-make` and the long version in `run-make-fulldeps` (which is now only three tests)
22 lines
717 B
Makefile
22 lines
717 B
Makefile
include ../tools.mk
|
|
|
|
OUTPUT_DIR := "$(TMPDIR)/rustdoc"
|
|
|
|
$(TMPDIR)/%.calls: $(TMPDIR)/libfoobar.rmeta
|
|
$(RUSTDOC) examples/$*.rs --crate-name $* --crate-type bin --output $(OUTPUT_DIR) \
|
|
--extern foobar=$(TMPDIR)/libfoobar.rmeta \
|
|
-Z unstable-options \
|
|
--scrape-examples-output-path $@ \
|
|
--scrape-examples-target-crate foobar \
|
|
$(extra_flags)
|
|
|
|
$(TMPDIR)/lib%.rmeta: src/lib.rs
|
|
$(RUSTC) src/lib.rs --crate-name $* --crate-type lib --emit=metadata
|
|
|
|
scrape: $(foreach d,$(deps),$(TMPDIR)/$(d).calls)
|
|
$(RUSTDOC) src/lib.rs --crate-name foobar --crate-type lib --output $(OUTPUT_DIR) \
|
|
-Z unstable-options \
|
|
$(foreach d,$(deps),--with-examples $(TMPDIR)/$(d).calls)
|
|
|
|
$(HTMLDOCCK) $(OUTPUT_DIR) src/lib.rs
|