all: knit.md knit.pandoc.docx knit.pandoc.html knit.html knit.pandoc.pdf # avoid loading dependencies defined in .RData or ~/.Rprofile # http://kbroman.org/knitr_knutshell/pages/reproducible.html R_OPTS=--no-save --no-restore --no-init-file --no-site-file --quiet knit.md : main.Rmd R ${R_OPTS} -e "library(knitr); knit(input='$<', output='$@')" knit.pandoc.docx : knit.md pandoc --output=$@ $^ knit.pandoc.html : knit.md pandoc --standalone --output=$@ $^ knit.html : main.Rmd R ${R_OPTS} -e "library(knitr); knit2html(input='$<', output='$@')" knit.pandoc.pdf : knit.md pandoc --output=$@ $^ clean : -trash figures -trash knit.html -trash knit.md -trash knit.pandoc.docx -trash knit.pandoc.html -trash knit.pandoc.pdf # https://www.gnu.org/software/make/manual/html_node/Automatic-Variables.html