From 89df28000c4ce8c1e46965ad72b79b406e4d512f Mon Sep 17 00:00:00 2001 From: Johannes Ranke Date: Thu, 8 May 2014 21:04:21 +0200 Subject: Support building static documentation, build it --- GNUmakefile | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'GNUmakefile') diff --git a/GNUmakefile b/GNUmakefile index 21a94341..ac4bd808 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -8,6 +8,8 @@ PKGSRC := $(shell basename $(PWD)) # containing the first instance of R on the PATH. RBIN ?= $(shell dirname "`which R`") +SDDIR ?= $(HOME)/svn/kinfit.r-forge/www/mkin_static + .PHONY: help help: @@ -24,6 +26,8 @@ help: @echo " install-no-vignettes Invoke build without rebuilding vignettes and then install the result" @echo " test Install a new copy of the package without vignette rebuilding" @echo " and run it through the testsuite" + @echo " sd Build the static documentation" + @echo " move-sd Move the static documentation where it belongs" @echo "" @echo "Packaging Tasks" @echo "---------------" @@ -66,6 +70,13 @@ test: install-no-vignettes cd tests;\ "$(RBIN)/Rscript" doRUnit.R +sd: + "$(RBIN)/Rscript" -e "library(staticdocs); build_site()" + +move-sd: + rm -rf $(SDDIR)/*;\ + cp -r inst/web/* $(SDDIR) + #------------------------------------------------------------------------------ # Packaging Tasks #------------------------------------------------------------------------------ -- cgit v1.2.1