diff options
author | Jonas Smedegaard <dr@jones.dk> | 2015-01-04 12:50:17 +0100 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2015-01-04 12:50:17 +0100 |
commit | 3eb8cb8867f083047c277527e83692cfaa479613 (patch) | |
tree | d3dc711d537ebe0257e813724d71658f31240bf8 /Makefile | |
parent | bc7c640e0db0328964a47c5cacf55b621779f611 (diff) |
Split and reorganize frontmatter.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -13,6 +13,10 @@ filters = ./pandoc-cs1 ./pandoc-todo filters += $(if $(citeproc_file),pandoc-citeproc) filters += ./pandoc-iri +mediawiki_includes = copyright.mw preface.mw foreword.mw + +includes += $(mediawiki_includes:.mw=.tex) + localfilters = $(filter ./%,$(filters)) title = Ensuring utmost transparency @@ -48,11 +52,15 @@ $(stem).mw: $(stem).raw ./mediawiki-trim $@ ./mediawiki-blockquote $@ ./mediawiki-uri-escape $@ + ./mediawiki-matter $@ $(stem).native: $(stem).mw $(localfilters) $(env_filter) pandoc -f mediawiki $(args_meta) $(args_filter) -o $@ $< -$(flavors:%=$(stem)-%.tex): $(stem)-%.tex: $(stem).native $(templates) +$(mediawiki_includes:.mw=.tex): %.tex: %.mw $(stem).mw + pandoc -f mediawiki -t latex --chapters -o $@ $< + +$(flavors:%=$(stem)-%.tex): $(stem)-%.tex: $(stem).native $(templates) $(includes) pandoc $(args_meta) $(args_latex) $(args_$*) -o $@ $< XELATEX = xelatex -no-shell-escape -halt-on-error -interaction=batchmode |