diff options
author | henil <dedaniahenil@gmail.com> | 2021-05-07 10:27:45 +0530 |
---|---|---|
committer | henil <dedaniahenil@gmail.com> | 2021-05-07 10:27:45 +0530 |
commit | 23450a708c48d4f0bf65db81425168734fc85487 (patch) | |
tree | 0d3e78c46cadcb403e434abcdf33e532f91a046a /Makefile.toml | |
parent | d5433f8f8995c155f231c823d49813882b6212bf (diff) |
fix(build): Make sure `assets/man` folder exists before building
manpage.
Diffstat (limited to 'Makefile.toml')
-rw-r--r-- | Makefile.toml | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Makefile.toml b/Makefile.toml index db68a76f4..167afc34d 100644 --- a/Makefile.toml +++ b/Makefile.toml @@ -94,15 +94,19 @@ end ''' [tasks.manpage] +workspace = false 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" +script = ''' +root_dir=${CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY} +mkdir -p ${root_dir}/assets/man +mandown ${root_dir}/docs/MANPAGE.md ZELLIJ 1 > ${root_dir}/assets/man/zellij.1 +''' dependencies = ["install-mandown"] [tasks.install-mandown] command = "cargo" args = ["install", "mandown"] - # CI Releasing Zellij [tasks.ci-build-release] workspace = false |