summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 9 insertions, 1 deletions
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