diff options
author | Ryota MIBU <r-mibu@cq.jp.nec.com> | 2015-06-15 19:06:48 +0900 |
---|---|---|
committer | Ryota MIBU <r-mibu@cq.jp.nec.com> | 2015-06-15 19:06:48 +0900 |
commit | f5f310ac975c10f20892cf7f4af82a5414d28899 (patch) | |
tree | c0b0ebf172ade8e34c62b7ff351a461101ccc8ea /Makefile | |
parent | 4c309f02b2aeee958461b5588959c58c080af28b (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-- | Makefile | 24 |
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' |