1
1
mirror of https://github.com/foxsen/archbase.git synced 2026-02-03 02:14:40 +08:00
Files
archbase/Makefile
Zhang Fuxin 7a9aafd5d5 all: html doc pdf的写法下make -j 8编译的结果会和单独依次make doc;
make pdf; make html效果不同,有可能是几个格式同时编译时会互相干扰导致。

改用render_book的output_format参数'all',这样编译时多个格式不会并行
执行,同时也实现了epub的输出。
2021-11-23 09:22:01 +08:00

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