summaryrefslogtreecommitdiffstats
path: root/Makefile.toml
diff options
context:
space:
mode:
authora-kenji <aks.kenji@protonmail.com>2021-05-05 22:22:10 +0200
committerGitHub <noreply@github.com>2021-05-05 22:22:10 +0200
commitbee1082b4a139fe1102431ad08becea546d9b25b (patch)
treedc51fc128c2a33487d663297850da0a07ccccdd0 /Makefile.toml
parent6714b21489b7fbbe94c8b581628f4f60cd77cc64 (diff)
parentb504a5379e21780bef8e728f6a406bfec02c7491 (diff)
Merge pull request #455 from Adhalianna/main
Add a manpage to Zellij
Diffstat (limited to 'Makefile.toml')
-rw-r--r--Makefile.toml18
1 files changed, 15 insertions, 3 deletions
diff --git a/Makefile.toml b/Makefile.toml
index 2dcb80ad6..db68a76f4 100644
--- a/Makefile.toml
+++ b/Makefile.toml
@@ -64,7 +64,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", "manpage"]
script_runner = "@duckscript"
script = '''
if is_dir ${CARGO_MAKE_TASK_ARGS}
@@ -93,10 +93,20 @@ for plugin in ${plugins}
end
'''
+[tasks.manpage]
+description = "Use mandown crate to create or update man entry from docs/MANPAGES.md"
+script = "mandown docs/MANPAGE.md ZELLIJ 1 > assets/man/zellij.1"
+dependencies = ["install-mandown"]
+
+[tasks.install-mandown]
+command = "cargo"
+args = ["install", "mandown"]
+
+
# CI Releasing Zellij
[tasks.ci-build-release]
workspace = false
-dependencies = ["setup-cross-compilation", "build-plugins-release", "wasm-opt-plugins"]
+dependencies = ["setup-cross-compilation", "build-plugins-release", "wasm-opt-plugins", "manpage"]
command = "cross"
args = ["build", "--verbose", "--release", "--target", "${CARGO_MAKE_TASK_ARGS}"]
@@ -125,4 +135,6 @@ args = ["publish"]
[tasks.publish-zellij]
command = "cargo"
-args = ["publish"] \ No newline at end of file
+args = ["publish"]
+
+