aboutsummaryrefslogtreecommitdiff
path: root/GNUmakefile
diff options
context:
space:
mode:
authorJohannes Ranke <jranke@uni-bremen.de>2015-06-22 06:09:00 +0200
committerJohannes Ranke <jranke@uni-bremen.de>2015-06-22 20:31:22 +0200
commit01d9de6ff165c64ffc4366f2eeb3d2649b5c74c0 (patch)
tree87d586590a1b94e5915cdd51394caef7eaf51ed1 /GNUmakefile
parent5bd8716b2e4c880b798d1e5e231d49816bbdebd1 (diff)
Version bump, correct benchmark in vignette/compiled_models
Reorganisation of the vignette generation in the Makefile. Improved YAML header in the R markdown vignettes. Rebuilt vignettes with the package installed.
Diffstat (limited to 'GNUmakefile')
-rw-r--r--GNUmakefile37
1 files changed, 10 insertions, 27 deletions
diff --git a/GNUmakefile b/GNUmakefile
index 7135d6ee..7763098a 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -25,14 +25,13 @@ pkgfiles = NEWS \
README.md \
tests/* \
tests/testthat* \
- TODO \
- vignettes/*.Rmd \
- vignettes/*.Rnw
+ vignettes/header.tex \
+ vignettes/mkin_vignettes.css* \
+ vignettes/*.Rnw \
+ vignettes/*.Rmd \
+ TODO
-
-
-
-all: check clean
+all: build
# convert markdown to R's NEWS format (from knitr package)
NEWS: NEWS.md
@@ -62,38 +61,22 @@ 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 --as-cran --no-tests --no-build-vignettes $(TGZ)
+ "$(RBIN)/R" CMD check --as-cran --no-tests $(TGZ)
check-no-vignettes: build-no-vignettes
mv $(TGZVNR) $(TGZ)
"$(RBIN)/R" CMD check --as-cran --no-tests --no-build-vignettes --no-vignettes $(TGZ)
mv $(TGZ) $(TGZVNR)
-clean:
+clean: clean-vignettes
$(RM) -r $(PKGNAME).Rcheck/
- $(RM) vignettes/*.R
test: install-no-vignettes
cd tests;\
"$(RBIN)/Rscript" testthat.R
-vignettes/mkin.pdf: vignettes/mkin.Rnw
- "$(RBIN)/Rscript" -e "tools::buildVignette(file = 'vignettes/mkin.Rnw', dir = 'vignettes')"
-
-vignettes/FOCUS_D.html: vignettes/FOCUS_D.Rmd
- "$(RBIN)/Rscript" -e "tools::buildVignette(file = 'vignettes/FOCUS_D.Rmd', dir = 'vignettes')"
-
-vignettes/FOCUS_L.html: vignettes/FOCUS_L.Rmd
- "$(RBIN)/Rscript" -e "tools::buildVignette(file = 'vignettes/FOCUS_L.Rmd', dir = 'vignettes')"
-
-vignettes/FOCUS_Z.pdf: vignettes/FOCUS_Z.Rnw
- "$(RBIN)/Rscript" -e "tools::buildVignette(file = 'vignettes/FOCUS_Z.Rnw', dir = 'vignettes')"
-
-vignettes/compiled_models.html: vignettes/compiled_models.Rmd
- "$(RBIN)/Rscript" -e "tools::buildVignette(file = 'vignettes/compiled_models.Rmd', dir = 'vignettes')"
-
-vignettes: vignettes/mkin.pdf vignettes/FOCUS_D.html vignettes/FOCUS_L.html vignettes/FOCUS_Z.pdf vignettes/compiled_models.html
+vignettes: install-no-vignettes vignettes/*
+ $(MAKE) -C vignettes
sd:
"$(RBIN)/Rscript" -e "library(staticdocs); build_site()"

Contact - Imprint