mirror of
https://github.com/foxsen/archbase.git
synced 2026-02-03 02:14:40 +08:00
make pdf; make html效果不同,有可能是几个格式同时编译时会互相干扰导致。 改用render_book的output_format参数'all',这样编译时多个格式不会并行 执行,同时也实现了epub的输出。
19 lines
363 B
Makefile
19 lines
363 B
Makefile
all:
|
|
Rscript -e 'bookdown::render_book("index.Rmd", "all")'
|
|
echo "done"
|
|
|
|
html:
|
|
Rscript -e 'bookdown::render_book()'
|
|
|
|
pdf:
|
|
Rscript -e 'bookdown::render_book("index.Rmd", "bookdown::pdf_book")'
|
|
|
|
doc:
|
|
Rscript -e 'bookdown::render_book("index.Rmd", "bookdown::word_document2")'
|
|
|
|
serve:
|
|
Rscript -e 'bookdown::serve_book()'
|
|
|
|
clean:
|
|
rm -rf _book _bookdown_files
|