manpage = doc/vtcol.1.gz cargo-target = ./target bin = $(cargo-target)/release/vtcol src = src/vtcol.rs meta = Cargo.toml all: bin doc bin: $(bin) doc: man man: $(manpage) $(bin): $(src) $(meta) cargo build --release $(manpage): doc/vtcol.rst rst2man $< |gzip > $@ clean: rm -f -- $(manpage) rm -rf -- $(cargo-target) .PHONY: clean