Skip to content

Commit 07b4bc8

Browse files
committed
FIX make sphinx docs work under Windows
1 parent 504c30b commit 07b4bc8

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

spin/cmds/meson.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -857,7 +857,9 @@ def docs(
857857
bold=True,
858858
fg="bright_blue",
859859
)
860-
_run(["make", "-C", doc_dir, sphinx_target], replace=True)
860+
861+
make_cmd = "make.bat" if sys.platform == "win32" else "make"
862+
_run([make_cmd, sphinx_target], cwd=doc_dir, replace=True)
861863

862864

863865
@click.command()

0 commit comments

Comments
 (0)