summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile19
1 files changed, 14 insertions, 5 deletions
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)