From 5ae2915dd0819a7c85d4b4c11f27ab71c0fdb2bc Mon Sep 17 00:00:00 2001 From: Carlos Goncalves Date: Tue, 2 Jun 2015 11:32:39 +0200 Subject: Fix build of blueprints in Makefile JIRA: DOCTOR-4 Change-Id: Ie62751f6631c48c4dfecc869d5d95daaf6a1754f Signed-off-by: Carlos Goncalves --- Makefile | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) 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) -- cgit 1.2.3-korg