diff options
-rw-r--r-- | Makefile | 19 |
1 files changed, 14 insertions, 5 deletions
@@ -1,13 +1,22 @@ -manpage = doc/vtcol.1.gz +manpage = doc/vtcol.1.gz +cargo-target = ./target +bin = $(cargo-target)/release/vtcol +src = src/vtcol.rs +meta = Cargo.toml -cargo-target = ./target +all: bin doc -$(manpage): doc/vtcol.rst - rst2man $< |gzip > $@ +bin: $(bin) + +doc: man man: $(manpage) -doc: man +$(bin): $(src) $(meta) + cargo build --release + +$(manpage): doc/vtcol.rst + rst2man $< |gzip > $@ clean: rm -f -- $(manpage) |