From: Mike Taylor Date: Thu, 16 Oct 2014 15:00:26 +0000 (+0100) Subject: Fix MKWS-296 ("PDF versions of documents do not build on Debian 6.0") X-Git-Tag: 1.0.0~173 X-Git-Url: http://git.indexdata.com/?p=mkws-moved-to-github.git;a=commitdiff_plain;h=1cfe46fca8d09f09d2971e6669bb7aa56188de0b 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). --- 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: