diff --git a/spin/cmds/meson.py b/spin/cmds/meson.py index 95e3e86..bfa0356 100644 --- a/spin/cmds/meson.py +++ b/spin/cmds/meson.py @@ -857,7 +857,10 @@ def docs( bold=True, fg="bright_blue", ) - _run(["make", "-C", doc_dir, sphinx_target], replace=True) + + make_bat_exists = (Path(doc_dir) / "make.bat").exists() + make_cmd = "make.bat" if sys.platform == "win32" and make_bat_exists else "make" + _run([make_cmd, sphinx_target], cwd=doc_dir, replace=True) @click.command()