# HG changeset patch # User Mads Kiilerich # Date 2009-08-20 21:35:46 # Node ID 7345fa5e572e029362bc6f2f96af452607ebb1ff # Parent 4483af166c6130819edf011c8c99fcb2488d38e3 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. diff --git a/doc/Makefile b/doc/Makefile --- a/doc/Makefile +++ b/doc/Makefile @@ -5,8 +5,8 @@ PREFIX=/usr/local 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