Add warning flag for RST utils.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Mon, 28 Nov 2011 01:09:15 +0200
changeset 11 00d3a2f1f32b
parent 10 992d7c458bbb
child 12 2d3d783b1b75
Add warning flag for RST utils.
Makefile
--- a/Makefile	Sun Nov 27 23:45:17 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 >$@