manpage = doc/vtcol.1.gz cargo-target = ./target bin = $(cargo-target)/release/vtcol lib = $(cargo-target)/release/libvtcol.rlib bin-src = src/vtcol.rs lib-src = src/lib.rs src = $(bin-src) $(lib-src) meta = Cargo.toml rustdoc-entry = target/doc/vtcol/index.html all: bin lib doc check: $(src) cargo test lib: $(lib) bin: $(bin) doc: man rustdoc man: $(manpage) rustdoc: $(rustdoc-entry) $(lib): $(lib-src) $(meta) cargo build --release $(bin): $(src) $(meta) cargo build --bin=vtcol --features=vtcol-bin --release $(manpage): doc/vtcol.rst rst2man $< |gzip > $@ $(rustdoc-entry): $(src) $(meta) cargo doc --bins clean: rm -f -- $(manpage) rm -rf -- $(cargo-target) .PHONY: clean check