From 5b0eeadaa80812f322f8c47576a16930a561286f Mon Sep 17 00:00:00 2001 From: Johannes Ranke Date: Mon, 30 Jan 2017 12:37:44 +0100 Subject: gmkin for windows powered by drat --- GNUmakefile | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/GNUmakefile b/GNUmakefile index fd80237..1100841 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -3,6 +3,7 @@ PKGVERS := $(shell sed -n "s/Version: *\([^ ]*\)/\1/p" DESCRIPTION) PKGDIR := $(PWD) TGZ := $(PKGNAME)_$(PKGVERS).tar.gz TGZVNR := $(PKGNAME)_$(PKGVERS)-vignettes-not-rebuilt.tar.gz +WINBIN := $(PKGNAME)_$(PKGVERS).zip # Specify the directory holding R binaries. To use an alternate R build (say a # pre-prelease version) use `make RBIN=/path/to/other/R/` or `export RBIN=...` @@ -41,6 +42,13 @@ build: $(TGZ) build-no-vignettes: $(TGZVNR) +$(WINBIN): build + @echo "Building windows binary package..." + "$(RBIN)/R" CMD INSTALL $(TGZ) --build + @echo "DONE." + +winbin: $(WINBIN) + install: build "$(RBIN)/R" CMD INSTALL $(TGZ) @@ -77,6 +85,9 @@ sd: drat: build "$(RBIN)/Rscript" -e "drat::insertPackage('$(TGZ)', commit = TRUE)" +dratwin: winbin + "$(RBIN)/Rscript" -e "drat::insertPackage('$(WINBIN)', 'e:/git/drat/', commit = TRUE)" + r-forge: sd git archive master > $(PKGDIR)/gmkin.tar;\ cd $(RFDIR) && rm -r `ls` && tar -xf $(PKGDIR)/gmkin.tar;\ -- cgit v1.2.1