Mercurial > hg
changeset 13054:25200c7efe0f
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
author | Nicolas Dumazet <nicdumz.commits@gmail.com> |
---|---|
date | Wed, 01 Dec 2010 09:46:11 +0900 |
parents | 120eccaaa522 |
children | e2b8c7a6ff4d |
files | doc/Makefile |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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