aboutsummaryrefslogtreecommitdiff
path: root/GNUmakefile
diff options
context:
space:
mode:
authorJohannes Ranke <jranke@uni-bremen.de>2015-08-22 02:59:25 +0200
committerJohannes Ranke <jranke@uni-bremen.de>2015-08-22 02:59:25 +0200
commit65e48ff1023d2a87186e3985bb9750426863352a (patch)
tree8cb11f83417a1146b2bb31e1e82748b21adc76a6 /GNUmakefile
parent0942cfd015148bc1850c55c8c7f2819fb62ceda9 (diff)
Generate README.html for my cgit setup on jrwb.de
Diffstat (limited to 'GNUmakefile')
-rw-r--r--GNUmakefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/GNUmakefile b/GNUmakefile
index 21dbc738..ff8958cb 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -23,8 +23,8 @@ pkgfiles = \
man/* \
NAMESPACE \
NEWS.md \
+ README.html \
R/* \
- README.md \
tests/* \
tests/testthat* \
TODO
@@ -41,9 +41,9 @@ $(TGZVNR): $(pkgfiles)
cd $(PKGSRC);\
mv $(TGZ) $(TGZVNR)
-build: $(TGZ)
+build: $(TGZ) vignettes
-build-no-vignettes: $(TGZVNR)
+build-no-vignettes: $(TGZVNR) vignettes
install: build
"$(RBIN)/R" CMD INSTALL $(TGZ)
@@ -77,6 +77,9 @@ test: quickinstall
cd tests;\
"$(RBIN)/Rscript" testthat.R 2>&1 | tee ../test.log
+README.html: README.md
+ "$(RBIN)/Rscript" -e "rmarkdown::render('README.md', output_format = 'html_document')"
+
vignettes/%.pdf: vignettes/header.tex vignettes/references.bib vignettes/%.Rnw
"$(RBIN)/Rscript" -e "tools::buildVignette(file = 'vignettes/$*.Rnw', dir = 'vignettes')"

Contact - Imprint