Mercurial > hg-stable
changeset 9405:7345fa5e572e
doc/Makefile: detect the right name for rst2man and rst2html
docutils uses the .py extension on the commands, and so do their installer.
Distribution packages might strip the .py, but the official name should work too.
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Thu, 20 Aug 2009 23:35:46 +0200 |
parents | 4483af166c61 |
children | a4b761751919 |
files | doc/Makefile |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/doc/Makefile Thu Aug 27 00:01:03 2009 +0200 +++ b/doc/Makefile Thu Aug 20 23:35:46 2009 +0200 @@ -5,8 +5,8 @@ MANDIR=$(PREFIX)/share/man INSTALL=install -c -m 644 PYTHON=python -RST2HTML=rst2html -RST2MAN=rst2man +RST2HTML=$(shell which rst2html 2> /dev/null || which rst2html.py) +RST2MAN=$(shell which rst2man 2> /dev/null || which rst2man.py) all: man html