summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2015-01-15 14:34:26 +0100
committerJonas Smedegaard <dr@jones.dk>2015-01-15 14:34:26 +0100
commitc647b5a00ced7d8f791705f2ad756335c4d7f739 (patch)
tree13061e29d81a66f7c234c32991abeff884391da2 /Makefile
parentedee74b3ffd4b2ce21a87b47c17bbf92ee2e28d5 (diff)
Fix revert to also filter frontmatter.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 2 insertions, 8 deletions
diff --git a/Makefile b/Makefile
index 0d610f1..34bed6b 100644
--- a/Makefile
+++ b/Makefile
@@ -9,15 +9,13 @@ citeproc_file = $(stem).bib
templates = template.tex header.tex before.tex after.tex
-filters = ./pandoc-cs1 ./pandoc-todo
+filters = ./pandoc-memoir ./pandoc-cs1 ./pandoc-todo
filters += $(if $(citeproc_file),pandoc-citeproc)
filters += ./pandoc-iri
markdown_includes = copyright.md colophon.md
-mediawiki_includes = preface.mw foreword.mw
includes += $(markdown_includes:.md=.tex)
-includes += $(mediawiki_includes:.mw=.tex)
localfilters = $(filter ./%,$(filters))
@@ -58,10 +56,6 @@ $(stem).mw: $(stem).raw
$(stem).native: $(stem).mw $(localfilters)
$(env_filter) pandoc -f mediawiki $(args_meta) $(args_filter) -o $@ $<
-$(mediawiki_includes): $(stem).mw
-$(mediawiki_includes:.mw=.tex): %.tex: %.mw $(stem).mw
- pandoc -f mediawiki -t latex --chapters -o $@ $<
-
$(markdown_includes:.md=.tex): %.tex: %.md
pandoc -f markdown -t latex --chapters -o $@ $<
@@ -70,7 +64,7 @@ $(flavors:%=$(stem)-%.pdf): $(stem)-%.pdf: $(stem).native $(templates) $(include
clean:
rm -f $(foreach ext,native bib mw,$(stem:%=%.$(ext)))
- rm -f $(includes) $(mediawiki_includes)
+ rm -f $(includes)
distclean: clean
rm -f $(stem:%=%.raw)