]> git.donarmstrong.com Git - using_make_for_science.git/blob - Makefile
add empty slides for the last few bits that I want to talk about
[using_make_for_science.git] / Makefile
1 #!/usr/bin/make -f
2
3 all: using_make_for_science.pdf
4
5 R ?= R
6
7 %.pdf: %.svg
8         inkscape -A $@ $<
9         pdfcrop $@
10         mv $(dir $@)*-crop.pdf $@
11
12 %.png: %.svg
13         inkscape -e $@ -d 300 $<
14
15 %.tex: %.Rnw
16         $(R) --encoding=utf-8 -e "library('knitr'); knit('$<')"
17
18 %.pdf: %.tex $(wildcard *.bib) $(wildcard *.tex)
19         latexmk -pdf -pdflatex='xelatex -shell-escape -8bit -interaction=nonstopmode %O %S' -bibtex -use-make $<