X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;ds=sidebyside;f=Makefile;h=884c0fe851f55cbc474a468b928e164a0c424eab;hb=6d33f0c23a1003239cbd578b9e134f1ac4f8d407;hp=909534671608ebf2cc6889cb85a91d696cfafbd6;hpb=377fd9a4d7f9cfc3817c18353f2eada300bd87b3;p=doctor.git diff --git a/Makefile b/Makefile index 90953467..884c0fe8 100644 --- a/Makefile +++ b/Makefile @@ -1,21 +1,26 @@ -BUILDDIR = build +BUILDDIR := build DESIGN_DOCS = $(wildcard design_docs/*.rst) -.PHONY: clean html pdf all +.PHONY: clean html pdf bps all -all: html pdf +all: bps html pdf clean: rm -rf $(BUILDDIR)/* -html: $(DESIGN_DOCS) - mkdir -p build/design_docs - rst2html.py $^ $(BUILDDIR)/$(^:.rst=.html) +bps: $(DESIGN_DOCS) | $(BUILDDIR) + mkdir -p $(BUILDDIR)/design_docs + $(foreach f,$(DESIGN_DOCS),rst2html.py $(f) $(BUILDDIR)/$(f:.rst=.html);) + +html: | $(BUILDDIR) sphinx-build -b html -c etc -d $(BUILDDIR)/doctrees \ requirements $(BUILDDIR)/requirements/html -pdf: +pdf: | $(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)