-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
23 lines (18 loc) · 804 Bytes
/
makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
.PHONY: _install_package_remotes
_install_package_remotes:
Rscript -e 'if (! "remotes" %in% rownames(installed.packages())) install.packages("remotes")'
.PHONY: install_dependencies
install_dependencies: _install_package_remotes
Rscript -e 'remotes::install_deps(dependencies = TRUE)'
.PHONY: install_deploy_dependencies
install_deploy_dependencies: _install_package_remotes
Rscript -e 'remotes::install_deps(dependencies = NA)'
.PHONY: remove_deploy_gitignores
remove_deploy_gitignores:
rm output/**/.gitignore
.PHONY: render_CV
render_CV:
Rscript -e 'rmarkdown::render("rmarkdown/CV.Rmd", output_dir = "output/github-pages")'
.PHONY: print_CV
print_CV: render_CV
Rscript -e 'pagedown::chrome_print("output/github-pages/CV.html", output = "output/print/CV.pdf", extra_args = "--no-sandbox")'