Add Makefile target for building the lib documentation

This commit is contained in:
Matthias Beyer 2016-07-27 19:29:34 +02:00
parent be0a907145
commit 7c8c9b5264

View file

@ -1,6 +1,8 @@
toml = $@/Cargo.toml
bin = $@/target/debug/$@
doc-crate-toml=./.imag-documentation/Cargo.toml
default: all
.PHONY: clean
@ -11,6 +13,9 @@ imag-%: prep
cargo build --manifest-path $(toml)
cp $(bin) out/
lib-doc:
cargo build --manifest-path $(doc-crate-toml)
prep:
mkdir -p out/