Makefile to use with Pandoc using pattern rules…

Makefile to use with Pandoc using pattern rules.

OUTPUT = ../output

%.docx: %.mdown
    pandoc -s --biblio bibliography.bib --csl cell.csl -o $(OUTPUT)/$@ $<
%.tex: %.mdown
    pandoc -s --biblio bibliography.bib --csl cell.csl -o $(OUTPUT)/$@ $<

Usage:

make introduction.docx

Adapted from
http://stackoverflow.com/questions/6577176/makefiles-and-wildcards

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *