-
Notifications
You must be signed in to change notification settings - Fork 433
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (23 loc) · 776 Bytes
/
Makefile
File metadata and controls
32 lines (23 loc) · 776 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
SPHINXOPTS =
BUILDDIR = _build
PYAV_PIP ?= pip
PIP := $(PYAV_PIP)
ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(SPHINXOPTS) .
.PHONY: clean html open upload default
default: html
TEMPLATES := $(wildcard api/*.py development/*.py)
RENDERED := $(TEMPLATES:%.py=_build/rst/%.rst)
_build/rst/%.rst: %.py $(TAGFILE) $(shell find ../include ../av -name '*.pyx' -or -name '*.pxd')
@ mkdir -p $(@D)
python $< > $@.tmp
mv $@.tmp $@
html: $(RENDERED)
$(PIP) install -U sphinx
rm -rf $(BUILDDIR)
sphinx-build -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
test:
PYAV_SKIP_DOXYLINK=1 sphinx-build -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest
open:
open _build/html/index.html
upload:
rsync -avxP --delete _build/html/ root@basswood-io.com:/var/www/pyav/docs/develop