11 lines
434 B
Makefile
11 lines
434 B
Makefile
|
all: document_min.pdf document.html
|
||
|
|
||
|
document.html: document.Rmd
|
||
|
R -e "rmarkdown::render('document.Rmd', output_format='bookdown::tufte_html2')"
|
||
|
|
||
|
document.pdf: document.Rmd
|
||
|
R -e "rmarkdown::render('document.Rmd', output_format='tufte::tufte_handout')"
|
||
|
|
||
|
document_min.pdf: document.pdf
|
||
|
ghostscript -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/printer -dNOPAUSE -dQUIET -dBATCH -sOutputFile=document_min.pdf document.pdf
|