-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
34 lines (25 loc) · 915 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
PACKAGE=$(shell awk '/^Package: / { print $$2 }' DESCRIPTION)
VERSION=$(shell awk '/^Version: / { print $$2 }' DESCRIPTION)
TARBALL=$(PACKAGE)_$(VERSION).tar.gz
all: check
yarn-build:
yarn install --link-duplicates --frozen-lockfile
yarn build
install: yarn-build
R CMD INSTALL --install-tests --html --example .
build: yarn-build
R CMD build .
check: build
R CMD check "$(TARBALL)"
check-as-cran: build
R CMD check --as-cran "$(TARBALL)"
wincheck: build
# See https://win-builder.r-project.org/ for more information
curl --no-epsv -# -T "$(TARBALL)" ftp://win-builder.r-project.org/R-devel/
# Release steps
# Update DESCRIPTION & ChangeLog with new version
# git commit -m "Release version "${VERSION} DESCRIPTION ChangeLog
# git tag -am "Release version "${VERSION} v${VERSION}
# Upload to CRAN
# git push && git push --tags
.PHONY: all yarn-build install build check check-as-cran wincheck