summaryrefslogtreecommitdiffstats
path: root/Makefile.toml
diff options
context:
space:
mode:
authorNKGoc <natka.goc@gmail.com>2021-05-04 20:50:27 +0200
committerNKGoc <natka.goc@gmail.com>2021-05-04 20:50:27 +0200
commit00d064e3498b96438def1d6ced069565a6423c12 (patch)
tree0fa79b898d7a3b51d8db0aa767c9cf437efe55a0 /Makefile.toml
parentf2f20f676fbcc408feac75d92d80d221a43b433e (diff)
add manpage to zellij
Diffstat (limited to 'Makefile.toml')
-rw-r--r--Makefile.toml16
1 files changed, 14 insertions, 2 deletions
diff --git a/Makefile.toml b/Makefile.toml
index 1d11f0d1a..c68d7223a 100644
--- a/Makefile.toml
+++ b/Makefile.toml
@@ -6,6 +6,7 @@ SKIP_TEST = false
# Add clippy to the default flow
[tasks.dev-test-flow]
+description = "Defines the default developer build flow with tests."
dependencies = [
"format-flow",
"format-toml-conditioned-flow",
@@ -64,7 +65,7 @@ args = ["clippy", "--", "@@split(CARGO_MAKE_TASK_ARGS,;)"]
# Release building and installing Zellij
[tasks.install]
workspace = false
-dependencies = ["build-plugins-release", "wasm-opt-plugins", "build-release"]
+dependencies = ["build-plugins-release", "wasm-opt-plugins", "build-release", "manpages-install"]
script_runner = "@duckscript"
script = '''
if is_dir ${CARGO_MAKE_TASK_ARGS}
@@ -125,4 +126,15 @@ args = ["publish"]
[tasks.publish-zellij]
command = "cargo"
-args = ["publish"] \ No newline at end of file
+args = ["publish"]
+
+[tasks.manpage]
+description = "Use mandown crate to create or update man entry from docs/MANPAGES.md"
+workspace = false
+script = "mandown docs/MANPAGE.md ZELLIJ 1 > assets/man/zellij.1"
+
+[tasks.manpage-install]
+description = "Install manpage from assets"
+workspace = false
+command = "sudo"
+args = ["cp", "assets/man/zellij.1", "/usr/share/man/man1/"]