-
Notifications
You must be signed in to change notification settings - Fork 37
/
Makefile
89 lines (66 loc) · 1.72 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
PKGNAME := $(shell sed -n "s/Package: *\([^ ]*\)/\1/p" DESCRIPTION)
PKGVERS := $(shell sed -n "s/Version: *\([^ ]*\)/\1/p" DESCRIPTION)
PKGSRC := $(shell basename `pwd`)
BIOCVER := RELEASE_3_17
all: rd check clean
alldocs: rd readme
rd:
#Rscript -e 'library(methods); devtools::document()'
Rscript -e 'roxygen2::roxygenise(".")'
readme:
Rscript -e 'rmarkdown::render("README.Rmd")'
codemetar:
Rscript -e 'codemetar::write_codemeta()'
build:
cd ..;\
R CMD build $(PKGSRC)
build2:
cd ..;\
R CMD build --no-build-vignettes $(PKGSRC)
install:
cd ..;\
R CMD INSTALL $(PKGNAME)_$(PKGVERS).tar.gz
check: rd build
cd ..;\
Rscript -e 'rcmdcheck::rcmdcheck("$(PKGNAME)_$(PKGVERS).tar.gz")'
check2: rd build
cd ..;\
R CMD check $(PKGNAME)_$(PKGVERS).tar.gz
check3: rd build2
cd ..;\
R CMD check --ignore-vignettes $(PKGNAME)_$(PKGVERS).tar.gz
bioccheck:
cd ..;\
Rscript -e 'BiocCheck::BiocCheck("$(PKGNAME)_$(PKGVERS).tar.gz")'
bignore:
Rscript -e 'usethis::use_build_ignore(glob2rx("inst/figures/*.png"), escape = FALSE)'
Rscript -e 'usethis::use_build_ignore(c("Makefile", "README.md", "README.Rmd", "CONDUCT.md", ".Rproj.user", ".Rproj"))'
gpcheck:
Rscript -e 'goodpractice::gp()'
debug: rd build2 install
clean:
cd ..;\
$(RM) -r $(PKGNAME).Rcheck/
clean2:
cd ..;\
$(RM) $(PKGNAME)_$(PKGVERS).tar.gz
gitmaintain:
git gc --auto;\
git prune -v;\
git fsck --full
rmoldrelease:
git branch -D $(BIOCVER)
release:
git checkout $(BIOCVER):\
git fetch --all
update:
git fetch --all;\
git checkout devel;\
git merge upstream/devel;\
git merge origin/devel
push: update
git push upstream devel;\
git push origin devel
biocinit:
git remote add upstream [email protected]:packages/$(PKGNAME).git;\
git fetch --all