summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Belanger <pabelanger@redhat.com>2021-08-24 11:29:28 -0400
committerGitHub <noreply@github.com>2021-08-24 11:29:28 -0400
commit59dd5704ca3112f92ce056f4da301c988e146c89 (patch)
treecd378e051b46caff2ae91b8717d16101f092e0f6
parent2ba9e35d09226f7c3664bf343f11043708a58997 (diff)
downloadansible-59dd5704ca3112f92ce056f4da301c988e146c89.tar.gz
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 <pabelanger@redhat.com>
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 0ab82f7874..e1664d5da4 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