forked from GuangchuangYu/nCov2019
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
53 lines (39 loc) · 1012 Bytes
/
Makefile
File metadata and controls
53 lines (39 loc) · 1012 Bytes
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
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
alldocs: rd readme
rd:
Rscript -e 'library(methods); devtools::document()'
# Rscript -e 'roxygen2::roxygenise(".")'
readme:
Rscript -e 'rmarkdown::render("README.Rmd", encoding="UTF-8")'
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
clean:
cd ..;\
$(RM) -r $(PKGNAME).Rcheck/
giteeinit:
git remote add gitee git@gitee.com:GuangchuangYu/$(PKGNAME).git;\
git fetch --all
update:
git fetch --all;\
git checkout master;\
git merge gitee/master;\
git merge origin/master
push:
git push gitee master;\
git push origin master