Initial commit.
[robmyers:contemporary-art-daily-analysis.git] / Makefile
1 all: cad-text-analysis.html cad-text-analysis.epub cad-text-analysis.pdf
2
3 R_OPTS=--vanilla
4
5 cad-text-analysis.html: cad-text-analysis.Rmd
6         R ${R_OPTS} \
7         -e 'library(knitr);knit2html("cad-text-analysis.Rmd")'
8
9 cad-text-analysis.epub: cad-text-analysis.html
10         pandoc -f html -t epub3 -o cad-text-analysis.epub cad-text-analysis.html
11
12 cad-text-analysis.pdf: cad-text-analysis.html
13         wkhtmltopdf --page-size Letter cad-text-analysis.html cad-text-analysis.pdf
14
15 clean:
16         rm -rf cad-text-analysis.md cad-text-analysis.html cad-text-analysis.epub
17         rm -rf cad-text-analysis.pdf cache figure