X-Git-Url: https://git.donarmstrong.com/?p=presentations%2Fgenome_diversity_oct_2016.git;a=blobdiff_plain;f=Makefile;fp=Makefile;h=a655bfcd1e52446f773f8c62b27e132a6bb3ef97;hp=0000000000000000000000000000000000000000;hb=ab3cc1f4967d53709e6a0111feab7bd6dd08cc71;hpb=0e0b8e9b4d2ccd05f2e2df0c7f11da3ff120451c diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..a655bfc --- /dev/null +++ b/Makefile @@ -0,0 +1,24 @@ +#!/usr/bin/make -f + +all: simmons_genome_diversity_oct_2016.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('$<')" + +simmons_genome_diversity_oct_2016.pdf: \ +simmons_genome_diversity_oct_2016.tex genome_diversity_paper figures + +%.pdf: %.tex $(wildcard *.bib) $(wildcard *.tex) + latexmk -f -pdf -pdflatex='xelatex -shell-escape -8bit -interaction=nonstopmode %O %S' -bibtex -use-make $< + +