aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Ranke <johannes.ranke@jrwb.de>2018-09-13 23:49:46 +0200
committerJohannes Ranke <johannes.ranke@jrwb.de>2018-09-13 23:49:46 +0200
commit7dd447599435337f47d4fd9505187033681fde76 (patch)
tree69f0a9dced0cec2f8d958b04404a5f1fefd0926d
parentf17a9576092cd3fc4e7c8063383f5d4977ca4108 (diff)
Add targets for windows binaries
-rw-r--r--GNUmakefile12
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?"

Contact - Imprint