diff options
author | Carlos Goncalves <carlos.goncalves@neclab.eu> | 2015-06-02 11:32:39 +0200 |
---|---|---|
committer | Carlos Goncalves <carlos.goncalves@neclab.eu> | 2015-06-02 11:32:39 +0200 |
commit | 5ae2915dd0819a7c85d4b4c11f27ab71c0fdb2bc (patch) | |
tree | 74b1371350109742d60e666920970a55bbb2d570 /Makefile | |
parent | 377fd9a4d7f9cfc3817c18353f2eada300bd87b3 (diff) |
Fix build of blueprints in Makefile
JIRA: DOCTOR-4
Change-Id: Ie62751f6631c48c4dfecc869d5d95daaf6a1754f
Signed-off-by: Carlos Goncalves <carlos.goncalves@neclab.eu>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 19 |
1 files changed, 12 insertions, 7 deletions
@@ -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) |