Add warning flag for RST utils.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Mon, 28 Nov 2011 01:09:15 +0200
changeset 1109 9885f6be80f0
parent 1108 60726f28b999
child 1110 6e71ffc71972
Add warning flag for RST utils.
Makefile
--- 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 >$@