summaryrefslogtreecommitdiffstats
path: root/Makefile.toml
diff options
context:
space:
mode:
authorNKGoc <natka.goc@gmail.com>2021-05-05 13:20:26 +0200
committerNKGoc <natka.goc@gmail.com>2021-05-05 13:20:26 +0200
commit0003f8268f3e3353d9302de833a1e07cfda829ef (patch)
tree0561920eaa88d7a1afdc86f85e08ffe6158cc6ef /Makefile.toml
parent6d826dcae0cc6003c2a8e318f3f8bb7d6b59cc7e (diff)
new tasks to install mandown and generate manpage
Diffstat (limited to 'Makefile.toml')
-rw-r--r--Makefile.toml22
1 files changed, 16 insertions, 6 deletions
diff --git a/Makefile.toml b/Makefile.toml
index b4821278e..f82a44b57 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", "manpage-install"]
+dependencies = ["build-plugins-release", "wasm-opt-plugins", "build-release", "manpage"]
script_runner = "@duckscript"
script = '''
if is_dir ${CARGO_MAKE_TASK_ARGS}
@@ -93,10 +93,15 @@ for plugin in ${plugins}
end
'''
+[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"
+
# CI Releasing Zellij
[tasks.ci-build-release]
workspace = false
-dependencies = ["setup-cross-compilation", "build-plugins-release", "wasm-opt-plugins"]
+dependencies = ["setup-cross-compilation", "install-mandown", "build-plugins-release", "wasm-opt-plugins", "ci-manpage"]
command = "cross"
args = ["build", "--verbose", "--release", "--target", "${CARGO_MAKE_TASK_ARGS}"]
@@ -104,6 +109,14 @@ args = ["build", "--verbose", "--release", "--target", "${CARGO_MAKE_TASK_ARGS}"
command = "cargo"
args = ["install", "cross"]
+[tasks.install-mandown]
+command = "cargo"
+args = ["install", "mandown"]
+
+[tasks.ci-manpage]
+script = "mandown docs/MANPAGE.md ZELLIJ 1 > assets/man/zellij.1"
+dependencies = ["install-mandown"]
+
# Publishing Zellij
[tasks.publish]
clear = true
@@ -127,7 +140,4 @@ args = ["publish"]
command = "cargo"
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"
+