Script returns full binary name

This commit is contained in:
cyqsimon 2023-03-14 16:56:20 +08:00
parent f95979586d
commit d44570b557
No known key found for this signature in database
GPG key ID: 1D8CE2F297390D65
2 changed files with 25 additions and 25 deletions

View file

@ -96,28 +96,16 @@ build-deps-ubuntu:
docs: docs-deps docs-build
docs-build: .PHONY
@if ! SUFFIX=$$(tools/get-best-python-for-docs-build.sh); then \
echo "ERROR: could not find a recent version of Python. mkdocs needs >= 3.8"; \
exit 1; \
fi; \
echo "python$$SUFFIX $$(which mkdocs) build"; \
"python$$SUFFIX" $$(which mkdocs) build
PY=$$(tools/get-python-bin.sh python) && MKDOCS=$$(which mkdocs) && \
$$PY $$MKDOCS build
docs-deps: .PHONY
@if ! SUFFIX=$$(tools/get-best-python-for-docs-build.sh); then \
echo "ERROR: could not find a recent version of Python. mkdocs needs >= 3.8"; \
exit 1; \
fi; \
echo "pip$$SUFFIX install -r requirements.txt"; \
"pip$$SUFFIX" install -r requirements.txt
PIP=$$(tools/get-python-bin.sh pip) && \
$$PIP install -r requirements.txt
docs-deps-update: .PHONY
@if ! SUFFIX=$$(tools/get-best-python-for-docs-build.sh); then \
echo "ERROR: could not find a recent version of Python. mkdocs needs >= 3.8"; \
exit 1; \
fi; \
echo "pip$$SUFFIX install -r requirements.txt --upgrade"; \
"pip$$SUFFIX" install -r requirements.txt --upgrade
PIP=$$(tools/get-python-bin.sh pip) && \
$$PIP install -r requirements.txt --upgrade
# Web app