From 1cfe46fca8d09f09d2971e6669bb7aa56188de0b Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Thu, 16 Oct 2014 16:00:26 +0100 Subject: [PATCH] Fix MKWS-296 ("PDF versions of documents do not build on Debian 6.0") To generate PDFs, we now use markdown2pdf when that exists (as it does alongside old versions of pandoc); otherwise we use pandoc itself (which in more recent versions does PDF output on its own). --- doc/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/doc/Makefile b/doc/Makefile index 461a904..c168a76 100644 --- a/doc/Makefile +++ b/doc/Makefile @@ -3,6 +3,9 @@ # To build the PDFs, you will need these Debian packages: # texlive-latex-recommended texlive-latex-extra texlive-fonts-recommended +# Older versions of pandoc don't do PDF output, but have a companion program +MARKDOWN2PDF = $(shell which markdown2pdf pandoc) + DOCS = index.html index.pdf \ mkws-manual.html mkws-manual.pdf \ mkws-developer.html mkws-developer.pdf \ @@ -33,7 +36,7 @@ all: $(INSTALLED) # texlive-latex-recommended ../tools/htdocs/%.pdf: %.markdown rm -f $@ - pandoc --standalone $< -o $@ + $(MARKDOWN2PDF) --standalone $< -o $@ chmod ugo-w $@ clean: -- 1.7.10.4