From 59dd5704ca3112f92ce056f4da301c988e146c89 Mon Sep 17 00:00:00 2001 From: Paul Belanger Date: Tue, 24 Aug 2021 11:29:28 -0400 Subject: [PATCH] Allow make docs to use PYTHON variable (#75559) The GENERATE_CLI command does not take into account a user overriding the PYTHON variable. Signed-off-by: Paul Belanger --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 0ab82f78742..e1664d5da43 100644 --- a/Makefile +++ b/Makefile @@ -299,7 +299,7 @@ linkcheckdocs: .PHONY: generate_rst generate_rst: lib/ansible/cli/*.py mkdir -p ./docs/man/man1/ ; \ - $(GENERATE_CLI) --template-file=docs/templates/man.j2 --output-dir=docs/man/man1/ --output-format man lib/ansible/cli/*.py + $(PYTHON) $(GENERATE_CLI) --template-file=docs/templates/man.j2 --output-dir=docs/man/man1/ --output-format man lib/ansible/cli/*.py docs: generate_rst