diff options
-rw-r--r-- | .gitignore | 3 | ||||
-rw-r--r-- | Makefile | 16 | ||||
-rw-r--r-- | README.rst | 8 |
3 files changed, 26 insertions, 1 deletions
@@ -12,3 +12,6 @@ todo # cargo junk Cargo.lock + +# manpage +doc/vtcol.1.gz diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..013dc99 --- /dev/null +++ b/Makefile @@ -0,0 +1,16 @@ +manpage = doc/vtcol.1.gz + +cargo-target = ./target + +$(manpage): doc/vtcol.rst + rst2man $< |gzip > $@ + +man: $(manpage) + +doc: man + +clean: + rm -f -- $(manpage) + rm -rf -- $(cargo-target) + +.PHONY: clean @@ -62,7 +62,13 @@ Building Use Cargo to obtain a binary: :: - cargo build + $ cargo build + +To generate the manpage, run :: + + $ make man + +*rst2man* from the *Docutils* suite needs to be installed for this. Background ---------- |