Add reference to service-status-notification bp
[doctor.git] / Makefile
1 BUILDDIR := build
2 DESIGN_DOCS = $(wildcard design_docs/*.rst)
3
4 .PHONY: clean html pdf bps all
5
6 all: bps html pdf
7
8 clean:
9         rm -rf $(BUILDDIR)/*
10
11 bps: $(DESIGN_DOCS) | $(BUILDDIR)
12         mkdir -p $(BUILDDIR)/design_docs
13         $(foreach f,$(DESIGN_DOCS),rst2html.py $(f) $(BUILDDIR)/$(f:.rst=.html);)
14
15 html: | $(BUILDDIR)
16         sphinx-build -b html -c etc -d $(BUILDDIR)/doctrees \
17             requirements $(BUILDDIR)/requirements/html
18
19 pdf: | $(BUILDDIR)
20         sphinx-build -b latex -c etc -d $(BUILDDIR)/doctrees \
21             requirements $(BUILDDIR)/requirements/latex
22         $(MAKE) -C $(BUILDDIR)/requirements/latex \
23             LATEXOPTS='--interaction=nonstopmode' all-pdf
24
25 $(BUILDDIR):
26         mkdir -p $(BUILDDIR)