From cc0eb0bce32255e95c1b86d9900209eee25a5951 Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Fri, 12 Nov 2021 17:14:09 +0100 Subject: add rustdoc to doc recipe --- Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index f413f68..446ffe9 100644 --- a/Makefile +++ b/Makefile @@ -3,21 +3,27 @@ cargo-target = ./target bin = $(cargo-target)/release/vtcol src = src/vtcol.rs meta = Cargo.toml +rustdoc-entry = target/doc/vtcol/index.html all: bin doc bin: $(bin) -doc: man +doc: man rustdoc man: $(manpage) +rustdoc: $(rustdoc-entry) + $(bin): $(src) $(meta) cargo build --release $(manpage): doc/vtcol.rst rst2man $< |gzip > $@ +$(rustdoc-entry): $(src) $(meta) + cargo doc --bins + clean: rm -f -- $(manpage) rm -rf -- $(cargo-target) -- cgit v1.2.3