summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2015-01-04 17:15:19 +0100
committerJonas Smedegaard <dr@jones.dk>2015-01-04 17:15:19 +0100
commit019be0e004d7d646709e3a0a01aafaa9ad48c384 (patch)
treeef2463b01c80a08e72ba134b2b80865563d40761 /Makefile
parent3eb8cb8867f083047c277527e83692cfaa479613 (diff)
Add separately authored copyright text (and drop upstream copyright section).
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 $@ $<