Skip to content

Commit 3055fbc

Browse files
committed
Create Makefile and add first commands
1 parent 536ac29 commit 3055fbc

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

.Rbuildignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,4 @@
1616
^vignettes/articles$
1717
^\.github$
1818
^pkgdown/_pkgdown\.yml$
19+
^Makefile$

Makefile

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
MAKEFLAGS = --silent --no-print-directory
2+
3+
PKG_NAME != grep -i "^package" DESCRIPTION | sed -E 's/^package[:[:space:]]+//I'
4+
PKG_VER != grep -i "^version" DESCRIPTION | sed -E 's/^version[:[:space:]]+//I'
5+
6+
.PHONY: rcpp document build install full-install check website
7+
8+
rcpp:
9+
Rscript -e 'Rcpp::compileAttributes(pkgdir = ".", verbose = TRUE)'
10+
11+
document:
12+
Rscript -e 'devtools::document(pkg = ".")'
13+
14+
build:
15+
Rscript -e 'devtools::build(pkg = ".", vignettes = FALSE)'
16+
17+
install:
18+
Rscript -e 'remotes::install_local(path = "../$(PKG_NAME)_$(PKG_VER).tar.gz", upgrade = "never", repos = BiocManager::repositories())'
19+
20+
full-install:
21+
${MAKE} rcpp
22+
${MAKE} document
23+
${MAKE} build
24+
${MAKE} install
25+
26+
check:
27+
Rscript -e 'devtools::check(pkg = ".", vignettes = FALSE)'
28+
29+
website:
30+
Rscript -e 'pkgdown::build_site(pkg = ".")'

0 commit comments

Comments
 (0)