]> git.donarmstrong.com Git - using_make_for_science.git/commitdiff
make makefile more compact since we use it directly in the presentation
authorDon Armstrong <don@donarmstrong.com>
Tue, 4 Aug 2015 22:38:50 +0000 (17:38 -0500)
committerDon Armstrong <don@donarmstrong.com>
Tue, 4 Aug 2015 22:38:50 +0000 (17:38 -0500)
Makefile

index 128cb194a93e38c7abb2959045baff32f25f52f5..4cacffb1227dcb120c6b7a135f52d77026283fac 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -2,18 +2,11 @@
 
 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 $<