runrst: add RSTARGS Makefile variable to allow customization
authorNicolas Dumazet <nicdumz.commits@gmail.com>
Wed, 01 Dec 2010 09:46:11 +0900
changeset 13054 25200c7efe0f
parent 13051 120eccaaa522
child 13055 e2b8c7a6ff4d
runrst: add RSTARGS Makefile variable to allow customization In particular, we can ask users to run make RSTARGS='--traceback' doc when we need debugging information
doc/Makefile
--- a/doc/Makefile	Mon Nov 29 10:13:55 2010 +0100
+++ b/doc/Makefile	Wed Dec 01 09:46:11 2010 +0900
@@ -7,6 +7,7 @@
 MANDIR=$(PREFIX)/share/man
 INSTALL=install -c -m 644
 PYTHON=python
+RSTARGS=
 
 export LANGUAGE=C
 export LC_ALL=C
@@ -25,11 +26,11 @@
 	mv $@.tmp $@
 
 %: %.txt common.txt
-	$(PYTHON) runrst hgmanpage --halt warning \
+	$(PYTHON) runrst hgmanpage $(RSTARGS) --halt warning \
 	  --strip-elements-with-class htmlonly $*.txt $*
 
 %.html: %.txt common.txt
-	$(PYTHON) runrst html --halt warning \
+	$(PYTHON) runrst html $(RSTARGS) --halt warning \
 	  --link-stylesheet --stylesheet-path style.css $*.txt $*.html
 
 MANIFEST: man html