Merge 008ff709c8
into c332c132fa
This commit is contained in:
commit
433ce9e613
2 changed files with 53 additions and 15 deletions
22
Makefile
22
Makefile
|
@ -1,7 +1,11 @@
|
|||
MAKEFLAGS := --jobs=1
|
||||
|
||||
VERSION := $(shell git describe --tag)
|
||||
COMMIT := $(shell git rev-parse --short HEAD)
|
||||
|
||||
PY_BIN := $(shell tools/get-python-bin.sh python)
|
||||
PIP_BIN := $(shell tools/get-python-bin.sh pip)
|
||||
|
||||
.PHONY:
|
||||
|
||||
help:
|
||||
|
@ -111,25 +115,13 @@ build-deps-ubuntu:
|
|||
docs: docs-deps docs-build
|
||||
|
||||
docs-build: .PHONY
|
||||
@if ! /bin/echo -e "import sys\nif sys.version_info < (3,8):\n exit(1)" | python3; then \
|
||||
if which python3.8; then \
|
||||
echo "python3.8 $(shell which mkdocs) build"; \
|
||||
python3.8 $(shell which mkdocs) build; \
|
||||
else \
|
||||
echo "ERROR: Python version too low. mkdocs-material needs >= 3.8"; \
|
||||
exit 1; \
|
||||
fi; \
|
||||
else \
|
||||
echo "mkdocs build"; \
|
||||
mkdocs build; \
|
||||
fi
|
||||
PY=$$(which $(PY_BIN)) && MKDOCS=$$(which mkdocs) && $$PY $$MKDOCS build
|
||||
|
||||
docs-deps: .PHONY
|
||||
pip3 install -r requirements.txt
|
||||
PIP=$$(which $(PIP_BIN)) && $$PIP install -r requirements.txt
|
||||
|
||||
docs-deps-update: .PHONY
|
||||
pip3 install -r requirements.txt --upgrade
|
||||
|
||||
PIP=$$(which $(PIP_BIN)) && $$PIP install -r requirements.txt --upgrade
|
||||
|
||||
# Web app
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue