-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
30 lines (22 loc) · 602 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
# 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 analogueExtra
check: build
cd ..;\
R CMD check analogueExtra_$(PKGVERS).tar.gz
check-cran: build
cd ..;\
R CMD check --as-cran analogueExtra_$(PKGVERS).tar.gz
install: build
cd ..;\
R CMD INSTALL analogueExtra_$(PKGVERS).tar.gz
move: check
cp ../analogueExtra.Rcheck/analogueExtra-Ex.Rout ./tests/Examples/analogueExtra-Ex.Rout.save
clean:
cd ..;\
rm -r analogueExtra.Rcheck/