diff options
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..." |