This repository has been archived by the owner on Apr 16, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Makefile
50 lines (42 loc) · 1.48 KB
/
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# You can set these variables from the command line.
SPHINXOPTS =
SPHINXBUILD = sphinx-build
SPHINXPROJ = PyInstaller
SOURCEDIR = .
BUILDDIR = _build
REPOSITORY = origin
# Put it first so that "make" without argument is like "make help".
help:
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
.PHONY: help Makefile clean upload venv
clean:
rm -rf _build
rm -f _funding_status.txt _funding_table.txt
upload:
rm -rf _build/html
git worktree prune
git worktree add _build/html master
find _build/html -mindepth 1 -not -name .git\* -delete
git update-index -q --refresh
make html
git describe --dirty=.mod --always > _build/html/_static/build-tag
cd _build/html && \
git add --all && \
git commit -m 'Website update.' && \
git push $(REPOSITORY)
venv:
@if test -z "$(VENVDIR)" ; then \
echo ; echo "Run make venv VENVDIR=/tmp/v34 " ; echo ; false ; fi
pyvenv "$(VENVDIR)"
"$(VENVDIR)"/bin/pip install --upgrade pip
"$(VENVDIR)"/bin/pip install -r requirements.txt
@echo
@echo "Now run 'source "$(VENVDIR)"/bin/activate'"
_funding_status.txt _funding_table.txt _static/funding-chart.png: _funding_2020.cfg
python3 gen_funding_chart.py
_funding_2020.cfg:
:
# Catch-all target: route all unknown targets to Sphinx using the new
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
%: Makefile _funding_status.txt _funding_table.txt _static/funding-chart.png
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)