From: Jason Ish Date: Mon, 6 Jul 2020 19:17:26 +0000 (-0600) Subject: rust: add doc target to build rust docs X-Git-Tag: suricata-6.0.0-beta1~141 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7ca24041b666bc9c9190a3c78d03d66b6ebebac6;p=thirdparty%2Fsuricata.git rust: add doc target to build rust docs Uses "cargo doc --no-deps" to build the documentation just for our Suricata package. Without --no-deps, documentation will be build for all our dependencies as well. The generated documentation will end up in target/doc as HTML. --- diff --git a/rust/Makefile.am b/rust/Makefile.am index 317f346515..4d86a3bd06 100644 --- a/rust/Makefile.am +++ b/rust/Makefile.am @@ -78,3 +78,6 @@ gen/rust-bindings.h: else gen/rust-bindings.h: endif + +doc: + CARGO_HOME=$(CARGO_HOME) $(CARGO) doc --all-features --no-deps