diff options
author | Johannes Ranke <jranke@uni-bremen.de> | 2015-12-22 19:32:54 +0100 |
---|---|---|
committer | Johannes Ranke <jranke@uni-bremen.de> | 2015-12-22 19:32:54 +0100 |
commit | 3a579d87820ccbec514f1be5eb090e874fd87eec (patch) | |
tree | fdc726d4938dc98fc741a38435372da22dc9e956 /GNUmakefile | |
parent | 9851a97ec915ddbfc8357f1a7e2cabae56c89f7d (diff) |
EFSA 2015 tier 1 PEC soil, clean up, add static docs
Diffstat (limited to 'GNUmakefile')
-rw-r--r-- | GNUmakefile | 10 |
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..." |