]> git.donarmstrong.com Git - diamond_presentation.git/commitdiff
add diamond presentation makefile
authorDon Armstrong <don@donarmstrong.com>
Wed, 14 Oct 2015 22:20:54 +0000 (17:20 -0500)
committerDon Armstrong <don@donarmstrong.com>
Wed, 14 Oct 2015 22:20:54 +0000 (17:20 -0500)
Makefile [new file with mode: 0644]

diff --git a/Makefile b/Makefile
new file mode 100644 (file)
index 0000000..9f83a84
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,23 @@
+#!/usr/bin/make -f
+
+
+R ?= R
+ROPTS=-q --no-save --no-restore-data
+
+all: diamond_presentation_2015.pdf
+
+%.pdf: %.svg
+       inkscape -D -A $@ $<
+
+%.png: %.svg
+       inkscape -D -e $@ -d 300 $<
+
+%.tex: %.Rnw
+       $(R) --encoding=utf-8 -e "library('knitr'); knit('$<')"
+
+%.pdf: %.tex $(wildcard *.bib) $(wildcard *.tex)
+       latexmk -pdf -pdflatex='xelatex -interaction=nonstopmode %O %S' -bibtex -use-make $<
+
+diamond_presentation_2015.tex: diamond_presentation_2015.Rnw
+
+