From b504a5379e21780bef8e728f6a406bfec02c7491 Mon Sep 17 00:00:00 2001 From: NKGoc Date: Wed, 5 May 2021 14:16:53 +0200 Subject: [PATCH] auto install mandown if it's not there (tested with Manjaro repositories) --- Makefile.toml | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/Makefile.toml b/Makefile.toml index cb1ec120..7f7cdef1 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