manpage = doc/vtcol.1.gz 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 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) .PHONY: clean