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
This commit is contained in:
parent
dba0b40e2e
commit
af46691a20
1 changed files with 6 additions and 5 deletions
11
Makefile
11
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)
|
||||
|
|
Loading…
Add table
Reference in a new issue