--- a/Makefile Mon Nov 28 00:34:57 2011 +0200
+++ b/Makefile Mon Nov 28 01:09:15 2011 +0200
@@ -27,6 +27,10 @@
RST2HTML = rst2html.py
endif
+RST_WARNING_FLAGS := --halt warning
+RST_FLAGS := --strip-comments
+RST_FLAGS += $(RST_WARNING_FLAGS)
+
################################################################
# Proj dirs/files.
@@ -53,7 +57,7 @@
html: $(HTML_FILES) $(TXT__FILES)
$(HTML_DIR)/%.html: %.rst rst.css | $(HTML_DIR)
- $(RST2HTML) --stylesheet=rst.css $*.rst $@
+ $(RST2HTML) $(RST_FLAGS) --stylesheet=rst.css $*.rst $@
$(HTML_DIR)/frame-index.html: index.sh $(RST_HTML_FILES) | $(HTML_DIR)
./index.sh frame >$@