diff --git a/doc/Makefile b/doc/Makefile --- a/doc/Makefile +++ b/doc/Makefile @@ -6,7 +6,14 @@ PREFIX=/usr/local MANDIR=$(PREFIX)/share/man INSTALL=install -m 644 -PYTHON?=python +# Default to Python 3. +# +# Windows ships Python 3 as `python.exe`, which may not be on PATH. py.exe is. +ifeq ($(OS),Windows_NT) +PYTHON?=py -3 +else +PYTHON?=python3 +endif RSTARGS= export HGENCODING=UTF-8