R ?= R %.pdf: %.svg inkscape -A $@ $< pdfcrop $@ mv $(dir $@)*-crop.pdf $@ %.png: %.svg inkscape -e $@ -d 300 $< %.tex: %.Rnw $(R) --encoding=utf-8 -e "library('knitr'); knit('$<')" %.pdf: %.tex latexmk -f -pdf -pdflatex='xelatex -interaction=nonstopmode %O %S' -bibtex -use-make $<