aboutsummaryrefslogtreecommitdiff
path: root/GNUmakefile
diff options
context:
space:
mode:
authorJohannes Ranke <jranke@uni-bremen.de>2017-01-30 12:37:44 +0100
committerJohannes Ranke <jranke@uni-bremen.de>2017-01-30 12:37:44 +0100
commit5b0eeadaa80812f322f8c47576a16930a561286f (patch)
tree4790208dd38990618ff588ce3a89973fd3296404 /GNUmakefile
parent5d4bc83057b1ca2b07b3e524953f68eadc81d1f3 (diff)
gmkin for windows powered by drat
Diffstat (limited to 'GNUmakefile')
-rw-r--r--GNUmakefile11
1 files changed, 11 insertions, 0 deletions
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;\

Contact - Imprint