blob: 8a2612d90a0ab339b89d7428039b879a8e9a61c9 (
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 docs/design/*.rst)
.PHONY: clean html pdf bps all
all: bps html pdf
clean:
rm -rf $(BUILDDIR)/*
bps: $(DESIGN_DOCS) | $(BUILDDIR)
mkdir -p $(BUILDDIR)/docs/design
$(foreach f,$(DESIGN_DOCS),rst2html.py $(f) $(BUILDDIR)/$(f:.rst=.html);)
bps: $(DESIGN_DOCS) | $(BUILDDIR)
mkdir -p $(BUILDDIR)/docs/design
$(foreach f,$(DESIGN_DOCS),rst2html.py $(f) $(BUILDDIR)/$(f:.rst=.pdf);)
$(BUILDDIR):
mkdir -p $(BUILDDIR)
|