diff options
author | fiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> | 2010-01-03 08:24:59 +0000 |
---|---|---|
committer | fiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> | 2010-01-03 08:24:59 +0000 |
commit | af46691a209dad112754fb99810f1abb17971371 (patch) | |
tree | acb5a17e5cb82333d228e8632019bdde5812fdbf | |
parent | dba0b40e2ea1c06ec7f05ddedd57efb8d310e58e (diff) | |
download | pandoc-af46691a209dad112754fb99810f1abb17971371.tar.gz |
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
-rw-r--r-- | Makefile | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -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) |