summaryrefslogtreecommitdiffstats
path: root/Makefile.toml
diff options
context:
space:
mode:
authorNKGoc <natka.goc@gmail.com>2021-05-05 14:16:53 +0200
committerNKGoc <natka.goc@gmail.com>2021-05-05 14:16:53 +0200
commitb504a5379e21780bef8e728f6a406bfec02c7491 (patch)
tree1cdbd3f67704140195d3d5c4bff9d46f3302a728 /Makefile.toml
parent67a0a8dc3bb4922dc5c28083499ed1284f248825 (diff)
auto install mandown if it's not there (tested with Manjaro repositories)
Diffstat (limited to 'Makefile.toml')
-rw-r--r--Makefile.toml18
1 files changed, 7 insertions, 11 deletions
diff --git a/Makefile.toml b/Makefile.toml
index cb1ec1203..7f7cdef13 100644
--- a/Makefile.toml
+++ b/Makefile.toml
@@ -95,14 +95,18 @@ 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"
+dependencies = ["install-mandown"]
+
+[tasks.install-mandown]
+command = "cargo"
+args = ["install", "mandown"]
+
# CI Releasing Zellij
[tasks.ci-build-release]
workspace = false
-dependencies = ["setup-cross-compilation", "install-mandown", "build-plugins-release", "wasm-opt-plugins", "ci-manpage"]
-
+dependencies = ["setup-cross-compilation", "build-plugins-release", "wasm-opt-plugins", "manpage"]
command = "cross"
args = ["build", "--verbose", "--release", "--target", "${CARGO_MAKE_TASK_ARGS}"]
@@ -110,14 +114,6 @@ 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