Doctor requirement deliverable
[doctor.git] / Makefile
1 BUILDDIR = build
2 DESIGN_DOCS = $(wildcard design_docs/*.rst)
3
4 .PHONY: clean html pdf all
5
6 all: html pdf
7
8 clean:
9         rm -rf $(BUILDDIR)/*
10
11 html: $(DESIGN_DOCS)
12         mkdir -p build/design_docs
13         rst2html.py $^ $(BUILDDIR)/$(^:.rst=.html)
14         sphinx-build -b html -c etc -d $(BUILDDIR)/doctrees \
15             requirements $(BUILDDIR)/requirements/html
16
17 pdf:
18         sphinx-build -b latex -c etc -d $(BUILDDIR)/doctrees \
19             requirements $(BUILDDIR)/requirements/latex
20         $(MAKE) -C $(BUILDDIR)/requirements/latex \
21             LATEXOPTS='--interaction=nonstopmode' all-pdf