aboutsummaryrefslogtreecommitdiff
path: root/GNUmakefile
diff options
context:
space:
mode:
Diffstat (limited to 'GNUmakefile')
-rw-r--r--GNUmakefile16
1 files changed, 9 insertions, 7 deletions
diff --git a/GNUmakefile b/GNUmakefile
index 64aa9d4..6b5e68c 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -1,7 +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
+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=...`
@@ -10,16 +10,18 @@ TGZ := ../$(PKGNAME)_$(PKGVERS).tar.gz
RBIN ?= $(shell dirname "`which R`")
build:
- cd ..;\
- "$(RBIN)/R" CMD build $(PKGSRC)
+ "$(RBIN)/R" CMD build .
install: build
- 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)
+
+pd:
+ "$(RBIN)/Rscript" -e "pkgdown::build_site()"
+ git add -A
+ git commit -m 'Static documentation rebuilt by pkgdown::build_site()' -e
winbuilder: build
@echo "Uploading to R-release on win-builder"

Contact - Imprint