chiark / gitweb /
Makefile: Honour new CARGO_DOC_OPTS variable
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 8 Apr 2021 15:07:16 +0000 (16:07 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 8 Apr 2021 15:07:16 +0000 (16:07 +0100)
This can be used to limit the number of rustdoc processes when running
autotests.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Makefile

index 50a920ba8b2738e93e26e6e9ca0b4aafafc5fc5f..a671eee5a75a8ef8de408bbe2755dca31dccc9a5 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -198,11 +198,11 @@ stamp/cargo-wdt.debug: $(call rsrcs,.)
        $(stamp)
 
 stamp/cargo.doc: $(call rsrcs,.)
-       $(CARGO) doc --workspace 2>&1 | egrep -vf .cargo-doc-suppress-errors
+       $(CARGO) doc $(CARGO_DOC_OPTS) --workspace 2>&1 |egrep -vf .cargo-doc-suppress-errors
        $(stamp)
 
 stamp/cargo.doc-otter-only: $(call rsrcs,.)
-       $(CARGO) doc --workspace -p otter --no-deps
+       $(CARGO) doc $(CARGO_DOC_OPTS) --workspace -p otter --no-deps
        $(stamp)
 
 $(addprefix stamp/cargo.wasm-,$(DR)):: \