diff --git a/makefile b/makefile index d117f26..2725342 100644 --- a/makefile +++ b/makefile @@ -1,5 +1,5 @@ # Produce Various Output Formats From A Restructured Text Source Document -# $Id: makefile,v 1.101 2013/03/04 20:35:28 tundra Exp $ +# $Id: makefile,v 1.102 2013/03/25 19:27:08 tundra Exp $ ##### @@ -39,12 +39,22 @@ +### +# Document Production +### + # RST Filter And Needed Program Locations -2HTML = rst2html.py -2LATEX = rst2latex.py --stylesheet=parskip --latex-preamble="\usepackage{fullpage}" -2ODT = rst2odt.py -2MAN = rst2man.py +# Some Docutils installations keep the ".py" suffix for the various +# frontend programs, and some do not. It's even possible there are +# links from one to the other. Since the project can be checked out +# on any platform, we have to check for this every time we run the +# 'make'. This is irritating. + +2HTML = $(shell which rst2html.py rst2html | tr '\012' ' ' | awk '{print $$1}') +2LATEX = $(shell which rst2latex.py rst2latex | tr '\012' ' ' | awk '{print $$1}') --stylesheet=parskip --latex-preamble="\usepackage{fullpage}" +2ODT = $(shell which rst2odt.py rst2odt | tr '\012' ' ' | awk '{print $$1}') +2MAN = $(shell which rst2man.py rst2man | tr '\012' ' ' | awk '{print $$1}') DVIPS = dvips PDFLATEX = pdflatex