From 33931c9c5380252c44d8510248bbb91f18fb26e7 Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Thu, 11 Nov 2021 20:47:52 +0100 Subject: add build recipe for binary --- Makefile | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 013dc99..f413f68 100644 --- a/Makefile +++ b/Makefile @@ -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) -- cgit v1.2.3