From 65e48ff1023d2a87186e3985bb9750426863352a Mon Sep 17 00:00:00 2001 From: Johannes Ranke Date: Sat, 22 Aug 2015 02:59:25 +0200 Subject: Generate README.html for my cgit setup on jrwb.de --- GNUmakefile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'GNUmakefile') 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')" -- cgit v1.2.1