-
Notifications
You must be signed in to change notification settings - Fork 14
/
Makefile
43 lines (32 loc) · 917 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
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
PKGNAME := $(shell sed -n "s/Package: *\([^ ]*\)/\1/p" DESCRIPTION)
PKGVERS := $(shell sed -n "s/Version: *\([^ ]*\)/\1/p" DESCRIPTION)
PKGSRC := $(shell basename `pwd`)
all: rd check clean
rd:
Rscript -e 'library(methods); devtools::document()'
readme:
Rscript -e 'rmarkdown::render("README.Rmd", encoding="UTF-8")'
build:
Rscript -e 'devtools::build()'
# cd ..;\
# R CMD build $(PKGSRC)
build2:
Rscript -e 'devtools::build(vignettes = FALSE)'
# cd ..;\
# R CMD build --no-build-vignettes $(PKGSRC)
install:
cd ..;\
R CMD INSTALL $(PKGNAME)_$(PKGVERS).tar.gz
check:
Rscript -e 'devtools::check()'
# cd ..;\
# Rscript -e 'rcmdcheck::rcmdcheck("$(PKGNAME)_$(PKGVERS).tar.gz", args="--as-cran")'
check2: build
cd ..;\
R CMD check $(PKGNAME)_$(PKGVERS).tar.gz
bioccheck:
cd ..;\
Rscript -e 'BiocCheck::BiocCheck("$(PKGNAME)_$(PKGVERS).tar.gz")'
clean:
cd ..;\
$(RM) -r $(PKGNAME).Rcheck/