summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index b8606d2..0c2ece8 100644
--- a/Makefile
+++ b/Makefile
@@ -13,8 +13,10 @@ filters = ./pandoc-cs1 ./pandoc-todo
filters += $(if $(citeproc_file),pandoc-citeproc)
filters += ./pandoc-iri
-mediawiki_includes = copyright.mw preface.mw foreword.mw
+markdown_includes = copyright.md
+mediawiki_includes = preface.mw foreword.mw
+includes += $(markdown_includes:.md=.tex)
includes += $(mediawiki_includes:.mw=.tex)
localfilters = $(filter ./%,$(filters))
@@ -60,6 +62,9 @@ $(stem).native: $(stem).mw $(localfilters)
$(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 $@ $<
+
$(flavors:%=$(stem)-%.tex): $(stem)-%.tex: $(stem).native $(templates) $(includes)
pandoc $(args_meta) $(args_latex) $(args_$*) -o $@ $<