-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
49 lines (37 loc) · 1.22 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
# You can set these variables from the command line.
BUILDDIR = ./
HTTPSERVE ?= ./node_modules/.bin/http-server
HTTPSERVE_PORT ?= 8001
PAPER =
SPHINXBUILD ?= ./bin/sphinx-build
SPHINXOPTS =
# Internal variables.
ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) ./source
.PHONY: all
all: html
.PHONY: help
help:
@echo "Please use \`make <target>' where <target> is one of the following:"
@echo ""
@echo " all A synonym for 'make dev'."
@echo " html Make standalone HTML files of the documentation."
@echo " serve Serve this directory via a webserver on port 8000."
########################################################################
## Miscellaneous
.PHONY: serve
serve:
python -m SimpleHTTPServer $(HTTPSERVE_PORT)
./bin/activate:
virtualenv .
.installed.cfg: requirements.txt buildout.cfg
./bin/pip install -r requirements.txt
./bin/buildout -v
dev: ./bin/activate .installed.cfg
########################################################################
## Documentation
.PHONY: html
html: dev
rm -rf $(BUILDDIR)/html
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
@echo
@echo "Build finished. The HTML pages are in $(BUILDDIR)/html."