-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
executable file
·81 lines (65 loc) · 2.2 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
# Makefile for Sphinx documentation
#
# You can set these variables from the command line.
SPHINXOPTS =
SPHINXBUILD = venv/bin/sphinx-build
PAPER =
BUILDDIR = _build
TMPDIR = _tmp
# Internal variables.
PAPEROPT_a4 = -D latex_paper_size=a4
PAPEROPT_letter = -D latex_paper_size=letter
ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
.PHONY: all
all: install clean linkcheck dummy html
clean:
rm -rf $(BUILDDIR)/*
linkcheck:
mkdir -p $(TMPDIR)/linkcheck
$(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(TMPDIR)/linkcheck
@echo
@echo "Link check complete; look for any errors in the above output " \
"or in $(TMPDIR)/linkcheck/output.txt."
dummy:
$(SPHINXBUILD) -b dummy $(ALLSPHINXOPTS) $(TMPDIR)/dummy
@echo
@echo "Build finished. Dummy builder generates no files."
html:
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/
#$(RSYNC) $(BUILDDIR)/html /var/www/html/docs
@echo
@echo "Build finished. The HTML pages are in $(BUILDDIR)/."
.PHONY: help
help:
@echo "Please use \`make <target>\` where <target> is one of"
@echo " build Runs clean, linkcheck, dummy and builds the documentation"
@echo " install to install needed-python stuff"
@echo " clean Removes any old files, previously built - if present"
@echo " local-tests Removes any old docs and runs local tests "
@echo " linkcheck to check all external links for integrity"
@echo " dummy to check syntax errors of document sources"
@echo " html to make standalone HTML files"
@echo " dirhtml to make HTML files named index.html in directories"
@echo " text to make text files"
.PHONY: build
build: clean linkcheck dummy html
.PHONY: local-tests
local-tests: clean linkcheck dummy
.PHONY: html
.PHONY: dirhtml
dirhtml:
$(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml
@echo
@echo "Build finished. The HTML pages are in $(BUILDDIR)/dirhtml."
.PHONY: text
text:
$(SPHINXBUILD) -b text $(ALLSPHINXOPTS) $(TMPDIR)/text
@echo
@echo "Build finished. The text files are in $(TMPDIR)/text."
.PHONY: linkcheck
.PHONY: clean
.PHONY: dummy
install:
/bin/bash scripts/install.sh
@echo
@echo "Installation Finished."