aboutsummaryrefslogtreecommitdiff
path: root/GNUmakefile
diff options
context:
space:
mode:
authorJohannes Ranke <jranke@uni-bremen.de>2015-12-22 19:32:54 +0100
committerJohannes Ranke <jranke@uni-bremen.de>2015-12-22 19:32:54 +0100
commit3a579d87820ccbec514f1be5eb090e874fd87eec (patch)
treefdc726d4938dc98fc741a38435372da22dc9e956 /GNUmakefile
parent9851a97ec915ddbfc8357f1a7e2cabae56c89f7d (diff)
EFSA 2015 tier 1 PEC soil, clean up, add static docs
Diffstat (limited to 'GNUmakefile')
-rw-r--r--GNUmakefile10
1 files changed, 10 insertions, 0 deletions
diff --git a/GNUmakefile b/GNUmakefile
index 50de943..bd1e053 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -12,6 +12,7 @@ usage:
@echo ""
@echo " clean - Clean up."
@echo " roxygen - Roxygenize."
+ @echo " sd - Build static documentation."
@echo " build - Build source package."
@echo " check - Run CRAN check on the package."
@echo " install - Install the package."
@@ -19,6 +20,7 @@ usage:
pkgfiles = pkg/DESCRIPTION \
README.html \
pkg/inst/testdata/* \
+ pkg/inst/staticdocs/index.r \
pkg/tests/testthat.R \
pkg/tests/testthat/* \
pkg/data/* \
@@ -34,6 +36,14 @@ roxygen:
"$(R_HOME)/bin/Rscript" -e 'library(devtools); document("pkg")'
@echo "DONE."
+sd: roxygen
+ @echo "Building static documentation..."
+ # suppressWarnings to get rid of mbcsToSbcs warnings when plotting the 'ยต' character
+ cd pkg; "$(R_HOME)/bin/Rscript" -e 'suppressWarnings(staticdocs::build_site())'
+ # The following workaround (setting the pdf encoding) as of stackoverflow 13251665 did not do it
+ #cd pkg; "$(R_HOME)/bin/Rscript" -e 'pdf.options(encoding="ISOLatin1.enc"); staticdocs::build_site()'
+ @echo "DONE."
+
$(TGZ): $(pkgfiles)
sed -i -e "s/Date:.*/Date: $(DATE)/" pkg/DESCRIPTION
@echo "Roxygenizing package..."

Contact - Imprint