summaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 8b2eba76fd9b96cc84410cda11369cc2927eef70 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
BUILDDIR := build
DESIGN_DOCS = $(wildcard design_docs/*.rst)

.PHONY: clean html pdf bps all

all: bps html pdf

clean:
	rm -rf $(BUILDDIR)/*

bps: $(DESIGN_DOCS) | $(BUILDDIR)
	mkdir -p $(BUILDDIR)/design_docs
	$(foreach f,$(DESIGN_DOCS),rst2html.py $(f) $(BUILDDIR)/$(f:.rst=.html);)

bps: $(DESIGN_DOCS) | $(BUILDDIR)
	mkdir -p $(BUILDDIR)/design_docs
	$(foreach f,$(DESIGN_DOCS),rst2html.py $(f) $(BUILDDIR)/$(f:.rst=.pdf);)

$(BUILDDIR):
	mkdir -p $(BUILDDIR)