This Makefile does the trick of producing a file with Pandoc from a directory of Markdown files, with some Markdown appended after the content of each Markdown file — by default three blocks of raw markup which will insert a pagebreak in DOCX, HTML or LaTeX output, but it can be taken from a file and so can be anything — before producing a single output file (by default a DOCX file) from the combined inputs with the appendage file inserted after each input file.
The content to append is taken from the file ./append.md
. If it doesn’t already exist it will be created with the following content:
````{=openxml}
<w:p><w:r><w:br w:type="page" /></w:r></w:p>
````
````{=html}