diff options
author | Ryota MIBU <r-mibu@cq.jp.nec.com> | 2015-11-26 23:48:06 +0900 |
---|---|---|
committer | Ryota MIBU <r-mibu@cq.jp.nec.com> | 2015-12-02 00:14:07 +0900 |
commit | 4b620af0a7c1b34f42241195661627304e993236 (patch) | |
tree | 24dc64ad4ca0548d697d40f7ebd6db627f9448a4 /Makefile | |
parent | c2f8523fe12c93813b8e459d093f0111c9dc1f31 (diff) |
change dirs to use new opnfv doc build script
Change-Id: Icfc17b1370fc111e0e9919f2f1c1d9ea8aee2702
Signed-off-by: Ryota MIBU <r-mibu@cq.jp.nec.com>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/Makefile b/Makefile deleted file mode 100644 index 1e06ef3c..00000000 --- a/Makefile +++ /dev/null @@ -1,44 +0,0 @@ -BUILDDIR := build -PUBLICDIR := public -DESIGN_DOCS = $(wildcard design_docs/*.rst) -MANUALS = $(wildcard manuals/*.rst) - -.PHONY: clean html pdf bps man all public - -define index - rm -f $1/index.html - find $1 -type f | while read a; do echo "<li><a href=$${a#$1/}>$${a#$1/}</a></li>" >> $1/index.html; done -endef - -all: man bps html pdf - $(call index,$(BUILDDIR)) - -public: - rm -rf $(PUBLICDIR) - mkdir -p $(PUBLICDIR) - cp -r $(BUILDDIR)/manuals $(PUBLICDIR)/ - cp -r $(BUILDDIR)/design_docs $(PUBLICDIR)/ - cp -r $(BUILDDIR)/requirements/html $(PUBLICDIR)/ - cp -r $(BUILDDIR)/requirements/latex/*.pdf $(PUBLICDIR)/ - $(call index,$(PUBLICDIR)) - -clean: - rm -rf $(BUILDDIR)/* - -man: - mkdir -p $(BUILDDIR)/manuals - $(foreach f,$(MANUALS),rst2html.py $(f) $(BUILDDIR)/$(f:.rst=.html);) - -bps: $(DESIGN_DOCS) - mkdir -p $(BUILDDIR)/design_docs - $(foreach f,$(DESIGN_DOCS),rst2html.py $(f) $(BUILDDIR)/$(f:.rst=.html);) - -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 |