diff options
Diffstat (limited to 'GNUmakefile')
-rw-r--r-- | GNUmakefile | 32 |
1 files changed, 7 insertions, 25 deletions
diff --git a/GNUmakefile b/GNUmakefile index dfc1b7b..64aa9d4 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=...` @@ -8,31 +9,6 @@ PKGSRC := $(shell basename $(PWD)) # containing the first instance of R on the PATH. RBIN ?= $(shell dirname "`which R`") -.PHONY: help - -help: - @echo "\nExecute development tasks for $(PKGNAME)\n" - @echo "Usage: \`make <task>\` where <task> is one of:" - @echo "" - @echo "Development Tasks" - @echo "-----------------" - @echo " build Create the package" - @echo " check Invoke build and then check the package" - @echo " install Invoke build and then install the result" - @echo "" - @echo "Packaging Tasks" - @echo "---------------" - @echo " release Give some reminders" - @echo "" - @echo "Using R in: $(RBIN)" - @echo "Set the RBIN environment variable to change this." - @echo "" - - -#------------------------------------------------------------------------------ -# Development Tasks -#------------------------------------------------------------------------------ - build: cd ..;\ "$(RBIN)/R" CMD build $(PKGSRC) @@ -44,3 +20,9 @@ install: build check: build cd ..;\ "$(RBIN)/R" CMD check --as-cran $(PKGNAME)_$(PKGVERS).tar.gz + +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/ |