diff --git a/makefile b/makefile index f1d9e61..4e73cc5 100644 --- a/makefile +++ b/makefile @@ -1,5 +1,5 @@ # Produce Various Output Formats From A Restructured Text Source Document -# $Id: makefile,v 1.105 2015/03/24 18:53:53 tundra Exp $ +# $Id: makefile,v 1.106 2015/04/15 22:45:26 tundra Exp $ ##### @@ -11,23 +11,25 @@ # List all the output files -1: ${PROJECT}.1 +1: ${PROJECT}.1 -doc: ${PROJECT}.doc +beamer: ${PROJECT}.beamer -dvi: ${PROJECT}.dvi +doc: ${PROJECT}.doc -html: ${PROJECT}.html +dvi: ${PROJECT}.dvi -latex: ${PROJECT}.latex +html: ${PROJECT}.html -odt: ${PROJECT}.odt +latex: ${PROJECT}.latex -pdf: ${PROJECT}.pdf +odt: ${PROJECT}.odt -ps: ${PROJECT}.ps +pdf: ${PROJECT}.pdf -txt: ${PROJECT}.txt +ps: ${PROJECT}.ps + +txt: ${PROJECT}.txt ##### @@ -53,6 +55,7 @@ # on any platform, we have to check for this every time we run the # 'make'. This is irritating. +2BEAMER = $(shell which rst2beamer.py rst2beamer | tr '\012' ' ' | awk '{print $$1}') --theme=Warsaw 2DOC = soffice --headless --convert-to doc 2HTML = $(shell which rst2html.py rst2html | tr '\012' ' ' | awk '{print $$1}') --no-compact-lists 2LATEX = $(shell which rst2latex.py rst2latex | tr '\012' ' ' | awk '{print $$1}') --stylesheet=parskip --latex-preamble="\usepackage{fullpage}" @@ -66,11 +69,15 @@ # File Types -CLEAN = .aux .log .out \~ -DOCFILES = .1 .doc .dvi .html .latex .odt .pdf .ps .txt +CLEAN = \~ .aux .log .nav .out .snm .toc .vrb +DOCFILES = .1 .beamer .doc .dvi .html .latex .odt .pdf .ps .txt # Conversion Rules +%.beamer : %.rst + ${2BEAMER} $*.rst >$*.beamer + ${PDFLATEX} $*.beamer + %.doc : %.odt ${2DOC} $*.odt