all: using_make_for_science.pdf
-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('$<')"
+ R --encoding=utf-8 -e \
+ "library('knitr'); knit('$<')"
%.pdf: %.tex $(wildcard *.bib) $(wildcard *.tex)
- latexmk -pdf -pdflatex='xelatex -shell-escape -8bit -interaction=nonstopmode %O %S' -bibtex -use-make $<
+ latexmk -pdf \
+ -pdflatex='xelatex -shell-escape -8bit -interaction=nonstopmode %O %S' \
+ -bibtex -use-make $<