Skip to content

Commit 9ac2d98

Browse files
committed
add package rule
1 parent f8c1eaf commit 9ac2d98

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,5 @@ clustermq.Rcheck
1515
src/Makevars
1616
.github/*.html
1717
windows
18+
/doc/
19+
/Meta/

Makefile

+7
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ all: rcpp doc vignettes
33

44
R = R --no-save --no-restore -e
55
BIN = $(abspath $(lastword $(MAKEFILE_LIST))/../tests/bin)
6+
PKGVER = $(shell grep Version: < DESCRIPTION | sed "s/Version: //")
67

78
.PHONY: test
89
test:
@@ -33,6 +34,12 @@ inst/doc/%.md: vignettes/%.rmd
3334
doc:
3435
$(R) "devtools::document()"
3536

37+
.PHONY: package
38+
package: rcpp doc vignettes
39+
./src/patch_libzmq.sh
40+
PATH=$(BIN):$$PATH R CMD build .
41+
R CMD check --as-cran clustermq_$(PKGVER).tar.gz
42+
3643
.PHONY: deploy
3744
deploy:
3845
$(R) "pkgdown::deploy_to_branch()"

0 commit comments

Comments
 (0)