all: main.md main.docx main.pandoc.html main.knitr.html main.pdf R_OPTS=--no-save --no-restore --quiet main.md : main.Rmd R ${R_OPTS} -e "library(knitr); knit(input='$<', output='$@')" main.docx : main.md pandoc --output=$@ $^ main.pandoc.html : main.md pandoc --standalone --output=$@ $^ main.knitr.html : main.Rmd R ${R_OPTS} -e "library(knitr); knit2html(input='$<', output='$@')" main.pdf : main.md pandoc --output=$@ $^ clean : -trash figures -trash main.knitr.html -trash main.pandoc.html -trash main.docx -trash main.md -trash main.pdf