]> git.donarmstrong.com Git - papers/h3abionet_hackathon_aug_2016.git/blob - Makefile
add h3africa slides
[papers/h3abionet_hackathon_aug_2016.git] / Makefile
1 R ?= R
2
3 all: h3abionet_hackathon.pdf
4
5 %.pdf: %.svg
6         inkscape -A $@ $<
7         pdfcrop $@
8         mv $(dir $@)*-crop.pdf $@
9
10 %.png: %.svg
11         inkscape -e $@ -d 300 $<
12
13 %.tex: %.Rnw
14         $(R) --encoding=utf-8 -e "library('knitr'); knit('$<')"
15
16 %.pdf: %.tex $(wildcard *.bib) $(wildcard *.tex)
17         latexmk -pdf -pdflatex='xelatex -interaction=nonstopmode %O %S' -bibtex -use-make $<