docs: VERSION
cargo doc
rm -rf ./doc
cp -r ./target/doc ./doc
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