diff options
author | Johannes Ranke <jranke@uni-bremen.de> | 2017-01-30 12:46:57 +0100 |
---|---|---|
committer | Johannes Ranke <jranke@uni-bremen.de> | 2017-01-30 12:46:57 +0100 |
commit | d78d2effd517ab3c27412ae6f4ae701c456ae590 (patch) | |
tree | a28e3282a2bf3dd9739779d9b46f141c04ab703e /GNUmakefile | |
parent | 651a4be1aece6a6268d4f8b830b57dab0581ceba (diff) |
pfm for windows in my drat
Diffstat (limited to 'GNUmakefile')
-rw-r--r-- | GNUmakefile | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/GNUmakefile b/GNUmakefile index 25f9693..1a913ab 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -1,6 +1,7 @@ PKGNAME := $(shell sed -n "s/Package: *\([^ ]*\)/\1/p" DESCRIPTION) PKGVERS := $(shell sed -n "s/Version: *\([^ ]*\)/\1/p" DESCRIPTION) TGZ := $(PKGNAME)_$(PKGVERS).tar.gz +WINBIN := $(PKGNAME)_$(PKGVERS).zip R_HOME ?= $(shell R RHOME) DATE := $(shell date +%Y-%m-%d) @@ -41,6 +42,13 @@ $(TGZ): $(pkgfiles) build: $(TGZ) +$(WINBIN): build + @echo "Building windows binary package..." + "$(R_HOME)/bin/R" CMD INSTALL $(TGZ) --build + @echo "DONE." + +winbin: $(WINBIN) + test: build @echo "Running testthat tests..." "$(R_HOME)/bin/Rscript" -e 'library(devtools); devtools::test()' 2>&1 | tee test.log @@ -64,6 +72,9 @@ install: build drat: build "$(R_HOME)/bin/Rscript" -e "drat::insertPackage('$(TGZ)', commit = TRUE)" +dratwin: winbin + "$(R_HOME)/bin/Rscript" -e "drat::insertPackage('$(WINBIN)', 'e:/git/drat/', commit = TRUE)" + winbuilder: build date @echo "Uploading to R-release on win-builder" |