-
-
Notifications
You must be signed in to change notification settings - Fork 92
/
Makefile
57 lines (44 loc) · 1.73 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
51
52
53
54
55
56
57
# Makefile for building a website using sphinx.
# This Makefile has been heavily modified from the original that
# sphinx-quickstart automatically creates
# You can set these variables from the command line.
SPHINXOPTS =
SPHINXBUILD = sphinx-build
BUILDDIR = _build
SOURCEDIR = .
# Other variables for site management, css updating, etc.
STATICDIR = _static
STATIC_CSS = themes/agogo/static
# Internal variables.
ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(SPHINXOPTS) $(SOURCEDIR)
.PHONY: help clean html site linkcheck doctest gh-pages dist
default: site
help:
@echo "Please use \`make <target>' where <target> is one of"
@echo " html : make standalone HTML files"
@echo " linkcheck: check all external links for integrity"
@echo " doctest : run all doctests embedded in the documentation (if enabled)"
@echo " gh-pages : push the local site build to its public location"
@echo " dist : create a tarball (no .git dir) of site"
clean:
-rm -rf $(BUILDDIR)/*
-rm -f *~
html:
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
@echo
@echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
linkcheck: site
$(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck
@echo
@echo "Link check complete; look for any errors in the above output " \
"or in $(BUILDDIR)/linkcheck/output.txt."
doctest:
$(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest
@echo "Testing of doctests in the sources finished, look at the " \
"results in $(BUILDDIR)/doctest/output.txt."
# fperez - new targets I've added after sphinx-quickstart
site: clean html
python _scripts/copy_trees.py
# Copy changes to the repo from which they are served
gh-pages: site
python _scripts/gh-pages.py