Categories
status

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

By microbe

Like to cook for microorganisms and human. Play football, tennis, and baseball.

Leave a Reply

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