-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
38 lines (31 loc) · 1.03 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
33
34
35
36
37
38
# Make R use the user's package library by setting the R user home path (R_USER)
# to the folder containing their package library. On Windows, it is in
# ~/Documents/R, whereas in Linux/macOS it is in ~/R.
ifdef OS
R_USER := ${HOME}
else
R_USER := ${HOME}
endif
export R_USER
.PHONY: all
update-deps:
@echo "update paws dependency"
@git submodule init
@git submodule update --remote
clean-down:
@echo "INFO $$(date +%F) $$(date +%T): Clearing down site"
@rm -rf docs
@rm -rf build/mkdocs/site
build-docs: clean-down
@Rscript build/rd2md.R
@Rscript build/build_assests.R
build-site: build-docs
@echo "INFO $$(date +%F) $$(date +%T): Building site"
@cd build/mkdocs && python -m mkdocs build
regen-site: build-site
@echo "INFO $$(date +%F) $$(date +%T): Moving site to root"
@rm -rf build/mkdocs/docs
requirements:
@Rscript -e "install.packages(c('rmarkdown', 'fs', 'yaml', 'roxygen2', 'remotes', 'mirai', 'heck'), repos='https://cran.rstudio.com/')"
@python -m pip install --upgrade pip
@pip install --upgrade mkdocs-material awscli