diff options
author | Johannes Ranke <johannes.ranke@jrwb.de> | 2018-09-13 23:49:46 +0200 |
---|---|---|
committer | Johannes Ranke <johannes.ranke@jrwb.de> | 2018-09-13 23:49:46 +0200 |
commit | 7dd447599435337f47d4fd9505187033681fde76 (patch) | |
tree | 69f0a9dced0cec2f8d958b04404a5f1fefd0926d /GNUmakefile | |
parent | f17a9576092cd3fc4e7c8063383f5d4977ca4108 (diff) |
Add targets for windows binaries
Diffstat (limited to 'GNUmakefile')
-rw-r--r-- | GNUmakefile | 12 |
1 files changed, 12 insertions, 0 deletions
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?" |