-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
56 lines (40 loc) · 1.67 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
document :
Rscript -e "devtools::document()"
data :
Rscript -e 'devtools::load_all("."); source("data-raw/simwei.R")'
check.Renviron :
#curl https://raw.githubusercontent.com/Bioconductor/packagebuilder/master/check.Renviron >check.Renviron
curl http://bioconductor.org/checkResults/devel/bioc-LATEST/Renviron.bioc >check.Renviron
check : document check.Renviron
rm weitrix_*.tar.gz || echo No old tarball
time R CMD build .
R_CHECK_ENVIRON=check.Renviron time R CMD check weitrix_*.tar.gz
ls -lh weitrix_*.tar.gz
# Should complete in less than 10 minutes
check-once : document check.Renviron
rm weitrix_*.tar.gz || echo No old tarball
time R CMD build .
R_CHECK_ENVIRON=check.Renviron time R CMD check --no-build-vignettes weitrix_*.tar.gz
ls -lh weitrix_*.tar.gz
bioccheck : document
R CMD BiocCheck .
test :
Rscript -e "devtools::test()"
install : document
R CMD INSTALL .
vignette :
@echo file:///`pwd`/doc
Rscript -e "devtools::build_vignettes(quiet=FALSE,clean=FALSE)"
site : document
Rscript -e "pkgdown::build_site(new_process=FALSE)"
# Note: must install package for system.file to work
site-devel : document
Rscript -e "devtools::load_all('.',export_all=F);pkgdown::build_site(new_process=FALSE,devel=TRUE,lazy=TRUE)"
# Note: must install package for system.file to work
articles-devel :
Rscript -e "devtools::load_all('.',export_all=F);pkgdown::build_articles(lazy=TRUE,quiet=FALSE)"
publish :
rsync -rv docs/* doc/* logarithmic.net:www/weitrix/
clean :
rm -rf weitrix.Rcheck vignettes/*.html vignettes/*_cache vignettes/*_files docs weitrix_*.tar.gz
.PHONY : document data check bioccheck test install vignette site site-devel articles-devel publish clean