-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
34 lines (25 loc) · 681 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
# Get the version info for later
PKGVERS := $(shell sed -n "s/Version: *\([^ ]*\)/\1/p" DESCRIPTION)
all: docs check clean
docs:
R -q -e 'library("roxygen2"); roxygenise(".")'
build: docs
cd ..;\
R CMD build coenocliner
check: build
cd ..;\
R CMD check coenocliner_$(PKGVERS).tar.gz
check-cran: build
cd ..;\
R CMD check --as-cran coenocliner_$(PKGVERS).tar.gz
install: build
cd ..;\
R CMD INSTALL coenocliner_$(PKGVERS).tar.gz
move: check
cp ../coenocliner.Rcheck/coenocliner-Ex.Rout ./tests/Examples/coenocliner-Ex.Rout.save
clean:
cd ..;\
rm -r coenocliner.Rcheck/
purl:
cd ..;\
R -q -e 'library("knitr"); purl("./coenocliner/vignettes/coenocliner.Rnw")'