git.iko.soy/typeable/pandoc
on master help sign in
Makefile: specify --template explicitly when using pandoc.
af46691fiddlosopher
Makefile+6−5
@@ -79,13 +79,13 @@ all: build-program
79
79
80# Document process rules.
80# Document process rules.
81%.html: % $(MAIN)
81%.html: % $(MAIN)
82− ./$(MAIN) -s -S --toc $< >$@ || rm -f $@
82+ ./$(MAIN) -s --template templates/html.template -S --toc $< >$@ || rm -f $@
83%.tex: % $(MAIN)
83%.tex: % $(MAIN)
84− ./$(MAIN) -s -w latex $< >$@ || rm -f $@
84+ ./$(MAIN) -s --template templates/latex.template -w latex $< >$@ || rm -f $@
85%.rtf: % $(MAIN)
85%.rtf: % $(MAIN)
86− ./$(MAIN) -s -w rtf $< >$@ || rm -f $@
86+ ./$(MAIN) -s --template templates/rtf.template -w rtf $< >$@ || rm -f $@
87%.pdf: % $(MAIN) markdown2pdf
87%.pdf: % $(MAIN) markdown2pdf
88− sh ./markdown2pdf $< || rm -f $@
88+ sh ./markdown2pdf --template templates/latex.template $< || rm -f $@
89%.txt: %
89%.txt: %
90 perl -p -e 's/\n/\r\n/' $< > $@ || rm -f $@ # convert to DOS line endings
90 perl -p -e 's/\n/\r\n/' $< > $@ || rm -f $@ # convert to DOS line endings
91
91
@@ -268,7 +268,8 @@ $(tarball):
268.PHONY: website
268.PHONY: website
269web_src:=web
269web_src:=web
270web_dest:=pandoc-website
270web_dest:=pandoc-website
271+make_page:=./$(MAIN) -s --template templates/html.template \
271−make_page:=./$(MAIN) -s -S -B $(web_src)/header.html \
272+ -S -B $(web_src)/header.html \
272 -A $(web_src)/footer.html \
273 -A $(web_src)/footer.html \
273 -H $(web_src)/css
274 -H $(web_src)/css
274cleanup_files+=$(web_dest)
275cleanup_files+=$(web_dest)