diff options
author | Johannes Ranke <jranke@uni-bremen.de> | 2014-05-08 21:04:21 +0200 |
---|---|---|
committer | Johannes Ranke <jranke@uni-bremen.de> | 2014-05-08 21:04:21 +0200 |
commit | 89df28000c4ce8c1e46965ad72b79b406e4d512f (patch) | |
tree | d4045738d299d99389352ace5c64b739ef2b85ae /GNUmakefile | |
parent | 6b0efae2868f68d1b6ea90b45a2aa4adb287bddc (diff) |
Support building static documentation, build it
Diffstat (limited to 'GNUmakefile')
-rw-r--r-- | GNUmakefile | 11 |
1 files changed, 11 insertions, 0 deletions
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 #------------------------------------------------------------------------------ |