summaryrefslogtreecommitdiff
path: root/Makefile
blob: f413f687a26df2dc788e0a287815b28da4fb9f96 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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