aboutsummaryrefslogtreecommitdiff
path: root/GNUmakefile
diff options
context:
space:
mode:
Diffstat (limited to 'GNUmakefile')
-rw-r--r--GNUmakefile17
1 files changed, 1 insertions, 16 deletions
diff --git a/GNUmakefile b/GNUmakefile
index 5078d82..b2399d7 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -2,7 +2,6 @@ PKGNAME := $(shell sed -n "s/Package: *\([^ ]*\)/\1/p" DESCRIPTION)
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
@@ -17,6 +16,7 @@ RFDIR ?= $(RFSVN)/pkg/gmkin
SDDIR ?= $(RFSVN)/www/gmkin_static
pkgfiles = NEWS.md \
+ .Rbuildignore \
data/* \
DESCRIPTION \
inst/GUI/* \
@@ -34,17 +34,11 @@ all: check clean
$(TGZ): $(pkgfiles)
"$(RBIN)/R" CMD build .
-$(TGZVNR): $(pkgfiles)
- "$(RBIN)/R" CMD build --no-build-vignettes . ;\
- mv $(TGZ) $(TGZVNR)
-
roxygen:
"$(RBIN)/Rscript" -e 'devtools::document()'
build: roxygen $(TGZ)
-build-no-vignettes: $(TGZVNR)
-
$(WINBIN): build
@echo "Building windows binary package..."
"$(RBIN)/R" CMD INSTALL $(TGZ) --build
@@ -55,17 +49,8 @@ winbin: $(WINBIN)
install: build
"$(RBIN)/R" CMD INSTALL $(TGZ)
-install-no-vignettes: build-no-vignettes
- "$(RBIN)/R" CMD INSTALL $(TGZVNR)
-
check: build
- # Vignettes have been rebuilt by the build target
- "$(RBIN)/R" CMD check --no-tests --no-build-vignettes $(TGZ)
-
-check-no-vignettes: build-no-vignettes
- mv $(TGZVNR) $(TGZ)
"$(RBIN)/R" CMD check --no-tests $(TGZ)
- mv $(TGZ) $(TGZVNR)
README.html: README.md
"$(RBIN)/Rscript" -e "rmarkdown::render('README.md', output_format = 'html_document', output_options = list(self_contained = TRUE))"

Contact - Imprint