summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2014-12-31 17:35:06 +0100
committerJonas Smedegaard <dr@jones.dk>2014-12-31 17:49:14 +0100
commitf89b78b463c108eed766a9ea7d930043e0a457d8 (patch)
treef505a518fe868ff81d367b8f1e3e70b0492d0e6a /Makefile
parent83ff019b64e25bfb4895c525ba0fcc3ae514e32a (diff)
Mark systematic issues (and compile LaTeX explicitly: Pandoc don't detect need for 3rd round).
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 9 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 25079fe..d7f1cf8 100644
--- a/Makefile
+++ b/Makefile
@@ -9,7 +9,7 @@ citeproc_file = $(stem).bib
templates = template.tex header.tex before.tex after.tex
-filters = ./pandoc-memoir ./pandoc-cs1
+filters = ./pandoc-memoir ./pandoc-cs1 ./pandoc-todo
filters += $(if $(citeproc_file),pandoc-citeproc)
filters += ./pandoc-iri
@@ -52,5 +52,11 @@ $(stem).mediawiki: $(stem).raw
$(stem).native: $(stem).mediawiki $(localfilters)
$(env_filter) pandoc -f mediawiki $(args_meta) $(args_filter) -o $@ $<
-$(flavors:%=$(stem)-%.pdf) $(stem).tex: $(stem).native $(templates)
- pandoc $(args_meta) $(args_latex) $(args_$(@:$(stem)-%.pdf=%)) -o $@ $<
+$(flavors:%=$(stem)-%.tex): $(stem).native $(templates)
+ pandoc $(args_meta) $(args_latex) $(args_$(@:$(stem)-%.tex=%)) -o $@ $<
+
+XELATEX = xelatex -no-shell-escape -halt-on-error -interaction=batchmode
+%.pdf: %.tex
+ $(XELATEX) $<
+ $(XELATEX) $<
+ $(XELATEX) $<