-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
31 lines (25 loc) · 897 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
SPHINXBUILD = ./.venv/bin/sphinx-build
SPHINXOPTS =
SOURCEDIR = docs
BUILDDIR = build
# Put it first so that "make" without argument is like "make help".
.PHONY: help
help: dependencies
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
./.venv/pyvenv.cfg:
@echo "provisioning environment"
@/usr/bin/env python3 -m venv ./.venv
.PHONY: dependencies
dependencies: ./.venv/pyvenv.cfg ./requirements.txt
@echo "installing dependencies"
@./.venv/bin/pip3 install -r ./requirements.txt
./requirements.txt:
@
.PHONY: test-build
test-build: dependencies
@$(SPHINXBUILD) -W "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS)
# Catch-all target: route all unknown targets to Sphinx using the new
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
.PHONY: Makefile
%: Makefile
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)