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
Leave a Reply