-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (28 loc) · 801 Bytes
/
Makefile
File metadata and controls
35 lines (28 loc) · 801 Bytes
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
32
33
34
35
SHELL := /bin/bash
SPHINXOPTS ?=
SPHINXBUILD ?= sphinx-build
SOURCEDIR = source
BUILDDIR = build
setup:
@(\
python3 -m venv .venv && \
source .venv/bin/activate && \
pip3 install -U pip && \
pip3 install -r requirements/packages.txt \
)
pip-update:
pip-compile --output-file=requirements/packages.txt -U requirements/packages.in --resolver=backtracking
gen:
@(\
source .venv/bin/activate && \
make html && \
watchmedo shell-command --recursive --patterns="*.rst; *.yaml" --command "make html" source \
)
help:
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
.PHONY: help Makefile
%: Makefile
@(\
source .venv/bin/activate && \
$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) \
)