From d78d2effd517ab3c27412ae6f4ae701c456ae590 Mon Sep 17 00:00:00 2001 From: Johannes Ranke Date: Mon, 30 Jan 2017 12:46:57 +0100 Subject: pfm for windows in my drat --- GNUmakefile | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'GNUmakefile') 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" -- cgit v1.2.1