aboutsummaryrefslogtreecommitdiff
path: root/GNUmakefile
diff options
context:
space:
mode:
Diffstat (limited to 'GNUmakefile')
-rw-r--r--GNUmakefile16
1 files changed, 12 insertions, 4 deletions
diff --git a/GNUmakefile b/GNUmakefile
index a2d88be..c0d78e3 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -1,6 +1,7 @@
PKGNAME := $(shell sed -n "s/Package: *\([^ ]*\)/\1/p" DESCRIPTION)
PKGVERS := $(shell sed -n "s/Version: *\([^ ]*\)/\1/p" DESCRIPTION)
PKGSRC := $(shell basename $(PWD))
+TGZ := ../$(PKGNAME)_$(PKGVERS).tar.gz
# 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=...`
@@ -22,6 +23,7 @@ help:
@echo " check-no-vignettes Invoke build without rebuilding vignettes, and then check"
@echo " install Invoke build and then install the result"
@echo " install-no-vignettes Invoke build without rebuilding vignettes and then install the result"
+ @echo " winbuilder Upload the build to winbuilder"
@echo ""
@echo "Using R in: $(RBIN)"
@echo "Set the RBIN environment variable to change this."
@@ -42,21 +44,27 @@ build-no-vignettes:
install: build
cd ..;\
- "$(RBIN)/R" CMD INSTALL $(PKGNAME)_$(PKGVERS).tar.gz
+ "$(RBIN)/R" CMD INSTALL $(TGZ)
install-no-vignettes: build-no-vignettes
cd ..;\
- "$(RBIN)/R" CMD INSTALL $(PKGNAME)_$(PKGVERS).tar.gz
+ "$(RBIN)/R" CMD INSTALL $(TGZ)
check: build
cd ..;\
- "$(RBIN)/R" CMD check --as-cran $(PKGNAME)_$(PKGVERS).tar.gz
+ "$(RBIN)/R" CMD check --as-cran $(TGZ)
check-no-vignettes: build-no-vignettes
cd ..;\
- "$(RBIN)/R" CMD check --as-cran $(PKGNAME)_$(PKGVERS).tar.gz
+ "$(RBIN)/R" CMD check --as-cran $(TGZ)
sd:
@echo Now execute
@echo "\n staticdocs::build_site()\n"
$(RBIN)/R
+
+winbuilder: build
+ @echo "Uploading to R-release on win-builder"
+ curl -T $(TGZ) ftp://anonymous@win-builder.r-project.org/R-release/
+ @echo "Uploading to R-devel on win-builder"
+ curl -T $(TGZ) ftp://anonymous@win-builder.r-project.org/R-devel/

Contact - Imprint