-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
22 lines (17 loc) · 1.31 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
pdf:
rm -f docs/*.tex docs/*.pdf
Rscript -e 'options(bookdown.render.file_scope = FALSE); bookdown::render_book("index.Rmd", output_format = "bookdown::pdf_book")'
rm -f *.log *.mtc* *.maf *.aux *.bcf *.lof *.lot *.out *.toc *.acr *.fdb_latexmk *.fls *.run.xml *.synctex.gz front-and-back-matter/abbreviations.aux templates/*.log templates/*.mtc* templates/*.maf templates/*.aux templates/*.bcf templates/*.lof templates/*.lot templates/*.out templates/*.toc templates/*.fdb_latexmk templates/*.fls templates/*.synctex.gz templates/*.run.xml
Rscript -e 'browseURL(ifelse(.Platform[["OS.type"]] == "windows", "docs\\_main.pdf", "docs/_main.pdf"))'
gitbook:
Rscript -e 'options(bookdown.render.file_scope = FALSE); bookdown::render_book("index.Rmd", output_format = "bookdown::gitbook")'
Rscript -e 'browseURL(ifelse(.Platform[["OS.type"]] == "windows", "docs\\index.html", "docs/index.html"))'
word:
Rscript -e 'options(bookdown.render.file_scope = FALSE); bookdown::render_book("index.Rmd", output_format = "bookdown::word_document2")'
Rscript -e 'browseURL(ifelse(.Platform[["OS.type"]] == "windows", "docs\\_main.docx", "docs/_main.docx"))'
clean:
rm -f *.log *.mtc* *.maf *.aux *.bbl *.blg *.xml
clean-knits:
rm -f *.docx *.html *.pdf *.log *.maf *.mtc* *.tex *.toc *.out *.lof *.lot *.bcf *.aux
rm -R *_files
rm -R *_cache