-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
40 lines (29 loc) · 780 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
# Get the version info for later
PKGVERS := $(shell sed -n "s/Version: *\([^ ]*\)/\1/p" DESCRIPTION)
all: check clean
#docs:
# R -q -e 'library("roxygen2"); roxygenise(".")'
build: #docs
cd ..;\
R CMD build --compact-vignettes=gs+pdf analogue
check: build
cd ..;\
R CMD check analogue_$(PKGVERS).tar.gz
check-cran: build
cd ..;\
R CMD check --as-cran analogue_$(PKGVERS).tar.gz
check-devel: build
cd ..;\
R-devel CMD check analogue_$(PKGVERS).tar.gz
check-devel-cran: build
cd ..;\
R-devel CMD check --as-cran analogue_$(PKGVERS).tar.gz
install: build
cd ..;\
R CMD INSTALL analogue_$(PKGVERS).tar.gz
move: check
cp ../analogue.Rcheck/analogue-Ex.Rout ./tests/Examples/analogue-Ex.Rout.save
clean:
cd ..;\
rm -r analogue.Rcheck/
release: move check-cran