diff options
author | Carlos Goncalves <carlos.goncalves@neclab.eu> | 2015-04-14 14:07:43 +0200 |
---|---|---|
committer | Carlos Goncalves <carlos.goncalves@neclab.eu> | 2015-05-16 20:32:13 +0200 |
commit | 5d6d390b05d3087c511d8d83160b71c25e3697c6 (patch) | |
tree | 2f8594d1540f21c2a330ecc7987411c8b2ebd547 /Makefile | |
parent | a8bfe8bf29ecedcb4c9348437f8d07f4a2a2f892 (diff) |
Doctor requirement deliverable
JIRA: DOCTOR-4
Change-Id: Ie80bfc8deac5822a70c1258b9ee8ffeec2b1c3a6
Signed-off-by: Carlos Goncalves <carlos.goncalves@neclab.eu>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 00000000..90953467 --- /dev/null +++ b/Makefile @@ -0,0 +1,21 @@ +BUILDDIR = build +DESIGN_DOCS = $(wildcard design_docs/*.rst) + +.PHONY: clean html pdf all + +all: html pdf + +clean: + rm -rf $(BUILDDIR)/* + +html: $(DESIGN_DOCS) + mkdir -p build/design_docs + rst2html.py $^ $(BUILDDIR)/$(^:.rst=.html) + sphinx-build -b html -c etc -d $(BUILDDIR)/doctrees \ + requirements $(BUILDDIR)/requirements/html + +pdf: + sphinx-build -b latex -c etc -d $(BUILDDIR)/doctrees \ + requirements $(BUILDDIR)/requirements/latex + $(MAKE) -C $(BUILDDIR)/requirements/latex \ + LATEXOPTS='--interaction=nonstopmode' all-pdf |