From 3eb8cb8867f083047c277527e83692cfaa479613 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Sun, 4 Jan 2015 12:50:17 +0100 Subject: Split and reorganize frontmatter. --- Makefile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 00dbe62..b8606d2 100644 --- a/Makefile +++ b/Makefile @@ -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 -- cgit v1.2.3