Add doc makefile

This commit is contained in:
root
2015-05-19 17:13:43 +02:00
parent 8dd64aa1d6
commit 4f2e2623ee
+12
View File
@@ -0,0 +1,12 @@
docs: VERSION
cargo doc --no-deps
rm -rf ./doc
cp -r ./target/doc ./doc
# Put in the crate version into the docs
find ./doc -name "*.html" -exec sed -i -e "s/<title>\(.*\) - Rust/<title>$(shell cat VERSION) - \1 - Rust/g" {} \;
VERSION: Cargo.toml
cargo pkgid | sed -e "s/.*\/\(.*\)#\(.*\)/\1 - \2/" > $@
.PHONY: docs