From 72c9d3d680102b39a583ae7c262557a4f75e17f8 Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Sat, 13 Feb 2010 20:33:15 +0000 Subject: [PATCH] tools: define rst2pdf --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index acf944f58..1f7ccc501 100644 --- a/Makefile +++ b/Makefile @@ -22,6 +22,7 @@ BENCHEXES=hledger-0.6 hledger-0.7 ledger-3pre # misc. tools PANDOC=pandoc RST2HTML=rst2html +RST2PDF=rst2pdf VIEWHTML=open VIEWPS=open VIEWPDF=open @@ -273,7 +274,7 @@ pdf: docspdf codepdf # generate pdf versions of main docs # work around rst2pdf needing images in the same directory docspdf: - -for d in $(DOCFILES); do (cd website && ln -sf ../$$d && rst2pdf $$d && rm -f $$d); done + -for d in $(DOCFILES); do (cd website && ln -sf ../$$d && $(RST2PDF) $$d && rm -f $$d); done # format all code as a pdf for offline reading ENSCRIPT=enscript -q --header='$$n|$$D{%+}|Page $$% of $$=' --line-numbers --font=Courier6 --color -o-