summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorRyota MIBU <r-mibu@cq.jp.nec.com>2015-06-15 19:06:48 +0900
committerRyota MIBU <r-mibu@cq.jp.nec.com>2015-06-15 19:06:48 +0900
commitf5f310ac975c10f20892cf7f4af82a5414d28899 (patch)
treec0b0ebf172ade8e34c62b7ff351a461101ccc8ea /Makefile
parent4c309f02b2aeee958461b5588959c58c080af28b (diff)
Ensure 'make' can be execute in top dir.2015.1.0
JIRA: PROMISE-4 Change-Id: I52044f54f0ab8eee5a9a5dcf6392cacae8a2692e Signed-off-by: Ryota MIBU <r-mibu@cq.jp.nec.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile24
1 files changed, 24 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..7d4dd23
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,24 @@
+BUILDDIR := build
+
+.PHONY: clean html pdf default
+
+default: pdf
+
+clean:
+ rm -rf $(BUILDDIR) plantuml.jar
+
+html: plantuml.jar | $(BUILDDIR)
+ sphinx-build -b html -c etc -d $(BUILDDIR)/doctrees \
+ requirements $(BUILDDIR)/requirements/html
+
+pdf: plantuml.jar | $(BUILDDIR)
+ sphinx-build -b latex -c etc -d $(BUILDDIR)/doctrees \
+ requirements $(BUILDDIR)/requirements/latex
+ $(MAKE) -C $(BUILDDIR)/requirements/latex \
+ LATEXOPTS='--interaction=nonstopmode' all-pdf
+
+$(BUILDDIR):
+ mkdir -p $(BUILDDIR)
+
+plantuml.jar:
+ wget 'http://downloads.sourceforge.net/project/plantuml/plantuml.jar'