From af46691a209dad112754fb99810f1abb17971371 Mon Sep 17 00:00:00 2001 From: fiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> Date: Sun, 3 Jan 2010 08:24:59 +0000 Subject: [PATCH] Makefile: specify --template explicitly when using pandoc. Reason: pandoc may not yet have been installed, so the templates may not be in the cabal data directory. Resolves Issue #192. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1792 788f1e2b-df1e-0410-8736-df70ead52e1b --- Makefile | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 1dd9c2204..fa12cc15d 100644 --- a/Makefile +++ b/Makefile @@ -79,13 +79,13 @@ all: build-program # Document process rules. %.html: % $(MAIN) - ./$(MAIN) -s -S --toc $< >$@ || rm -f $@ + ./$(MAIN) -s --template templates/html.template -S --toc $< >$@ || rm -f $@ %.tex: % $(MAIN) - ./$(MAIN) -s -w latex $< >$@ || rm -f $@ + ./$(MAIN) -s --template templates/latex.template -w latex $< >$@ || rm -f $@ %.rtf: % $(MAIN) - ./$(MAIN) -s -w rtf $< >$@ || rm -f $@ + ./$(MAIN) -s --template templates/rtf.template -w rtf $< >$@ || rm -f $@ %.pdf: % $(MAIN) markdown2pdf - sh ./markdown2pdf $< || rm -f $@ + sh ./markdown2pdf --template templates/latex.template $< || rm -f $@ %.txt: % perl -p -e 's/\n/\r\n/' $< > $@ || rm -f $@ # convert to DOS line endings @@ -268,7 +268,8 @@ $(tarball): .PHONY: website web_src:=web web_dest:=pandoc-website -make_page:=./$(MAIN) -s -S -B $(web_src)/header.html \ +make_page:=./$(MAIN) -s --template templates/html.template \ + -S -B $(web_src)/header.html \ -A $(web_src)/footer.html \ -H $(web_src)/css cleanup_files+=$(web_dest)