# HG changeset patch # User Oleksandr Gavenko # Date 1322435355 -7200 # Node ID 00d3a2f1f32b6b3b3b52006b36e918283e5ed6df # Parent 992d7c458bbb6db06f92ef203710f5cc598f3703 Add warning flag for RST utils. diff -r 992d7c458bbb -r 00d3a2f1f32b 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 >$@