-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
32 lines (27 loc) · 1.1 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
html:
Rscript -e 'bookdown::render_book("index.Rmd", output_format = "bookdown::gitbook")'
Rscript code/generate_book_stats.R
cp -r widgets _book/.
#mv widgets _book/.
pdf:
Rscript -e 'bookdown::render_book("index.Rmd", output_format = "bookdown::pdf_book")'
cp -r widgets _book/.
all:
Rscript -e 'bookdown::render_book("index.Rmd", output_format = "bookdown::pdf_book")'
Rscript -e 'bookdown::render_book("index.Rmd", output_format = "bookdown::epub_book")'
Rscript -e 'bookdown::render_book("index.Rmd", output_format = "bookdown::gitbook", clean = FALSE)'
cp -r widgets _book/.
both:
Rscript -e 'bookdown::render_book("index.Rmd", output_format = "bookdown::pdf_book")'
Rscript -e 'bookdown::render_book("index.Rmd", output_format = "bookdown::gitbook", clean = FALSE)'
cp -r widgets _book/.
clean:
Rscript -e "bookdown::clean_book(TRUE)"
rm -fvr *.log Rplots.pdf _bookdown_files
cleaner:
make clean && rm -fvr rsconnect
rm -frv *.aux *.out *.toc # Latex output
rm -fvr *.html # rogue html files
rm -fvr *.rds # rogue rds files
rm -fvr *utf8.md # rogue md files
rm -fvr *.Rmd~ # rogue rmd~ files