From 5d6d390b05d3087c511d8d83160b71c25e3697c6 Mon Sep 17 00:00:00 2001 From: Carlos Goncalves Date: Tue, 14 Apr 2015 14:07:43 +0200 Subject: Doctor requirement deliverable JIRA: DOCTOR-4 Change-Id: Ie80bfc8deac5822a70c1258b9ee8ffeec2b1c3a6 Signed-off-by: Carlos Goncalves --- Makefile | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Makefile (limited to 'Makefile') 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 -- cgit 1.2.3-korg