From 7dd447599435337f47d4fd9505187033681fde76 Mon Sep 17 00:00:00 2001 From: Johannes Ranke Date: Thu, 13 Sep 2018 23:49:46 +0200 Subject: Add targets for windows binaries --- GNUmakefile | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'GNUmakefile') diff --git a/GNUmakefile b/GNUmakefile index 6584722c..77b8214e 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -3,6 +3,7 @@ PKGVERS := $(shell sed -n "s/Version: *\([^ ]*\)/\1/p" DESCRIPTION) PKGSRC := $(shell basename $(PWD)) TGZ := $(PKGSRC)_$(PKGVERS).tar.gz TGZVNR := $(PKGSRC)_$(PKGVERS)-vignettes-not-rebuilt.tar.gz +WINBIN := $(PKGSRC)_$(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=...` @@ -95,6 +96,17 @@ winbuilder: build drat: build "$(RBIN)/Rscript" -e "drat::insertPackage('$(TGZ)', commit = TRUE)" +$(WINBIN): build + @echo "Building windows binary package..." + "$(RBIN)/R" CMD INSTALL $(TGZ) --build + @echo "DONE." + +winbin: $(WINBIN) + +dratwin: winbin + "$(RBIN)/Rscript" -e "drat::insertPackage('$(WINBIN)', '~/git/drat/', commit = TRUE)" + + submit: @echo "\nHow about make test, make check, make pd, make winbuilder" @echo "\nIs the DESCRIPTION file up to date?" -- cgit v1.2.1