diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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 $@ $< |