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 | |
| parent | Merge pull request #223 from zellij-org/isolate-pty (diff) | |
| download | sl0ppij-23450a708c48d4f0bf65db81425168734fc85487.tar.gz sl0ppij-23450a708c48d4f0bf65db81425168734fc85487.tar.xz sl0ppij-23450a708c48d4f0bf65db81425168734fc85487.zip | |
fix(build): Make sure `assets/man` folder exists before building
manpage.
| -rw-r--r-- | Makefile.toml | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Makefile.toml b/Makefile.toml index db68a76f..167afc34 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 |
