summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 884c0fe8..888d158e 100644
--- a/Makefile
+++ b/Makefile
@@ -1,13 +1,18 @@
BUILDDIR := build
DESIGN_DOCS = $(wildcard design_docs/*.rst)
+MANUALS = $(wildcard manuals/*.rst)
-.PHONY: clean html pdf bps all
+.PHONY: clean html pdf bps man all
-all: bps html pdf
+all: man bps html pdf
clean:
rm -rf $(BUILDDIR)/*
+man: | $(BUILDDIR)
+ mkdir -p $(BUILDDIR)/manuals
+ $(foreach f,$(MANUALS),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=.html);)