1
0
Fork 0
mirror of https://git.sr.ht/~nixgoat/vento synced 2024-11-16 12:02:49 +00:00
vento/Makefile.toml
Lux Aliaga 13e28e445c
build: Create manpages for Vento.
I've backtracked from using Clap and instead will keep using my own
custom command parser. I'll be using the man crate instead. These
manpages have the new syntax which I'll implement in the following
commits. This also uses cargo-make to install the manpages because I
don't want the manpages being replaced everytime I rebuild.
2022-09-24 22:51:57 -03:00

33 lines
552 B
TOML

[tasks.install-binary]
command = "cargo"
args = ["install", "--path", "."]
[tasks.install-manpages]
condition = { platforms = ["linux", "mac"] }
script = [
"cp /tmp/vento-man/* $HOME/.local/share/man/man1/",
"rm -rf /tmp/vento-man"
]
[tasks.install]
dependencies = [
"install-binary",
"install-manpages"
]
[tasks.clean-binary]
command = "cargo"
args = ["clean"]
[tasks.clean-manpages]
condition = { platforms = ["linux", "mac"] }
script = [
"rm -rf /tmp/vento-man"
]
[tasks.clean]
dependencies = [
"clean-binary",
"clean-manpages"
]