aboutsummaryrefslogtreecommitdiff
path: root/GNUmakefile
diff options
context:
space:
mode:
authorJohannes Ranke <jranke@uni-bremen.de>2015-05-19 10:46:30 +0200
committerJohannes Ranke <jranke@uni-bremen.de>2015-05-19 10:46:30 +0200
commite338c9a5a8da42e5f7b8940b96d150752767d75a (patch)
treed9d9f6b5b0bbb2c32baf4b8f4d3d6d5a58dcc7c3 /GNUmakefile
parent01d0f98ad63ebd1ff9a067cba374d1dbed7383d1 (diff)
Include output in README, use mkinsub() in example code
Diffstat (limited to 'GNUmakefile')
-rw-r--r--GNUmakefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/GNUmakefile b/GNUmakefile
index 613c124c..a6b31f3b 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -28,12 +28,15 @@ pkgfiles = NEWS \
TODO \
vignettes/*
-all: NEWS check clean
+all: check clean
# convert markdown to R's NEWS format (from knitr package)
NEWS: NEWS.md
sed -e 's/^-/ -/' -e 's/^## *//' -e 's/^#/\t\t/' <NEWS.md | fmt -80 >NEWS
+README.md: README.Rmd
+ "$(RBIN)/Rscript" -e 'require(knitr); knit("README.Rmd")'
+
$(TGZ): $(pkgfiles)
cd ..;\
"$(RBIN)/R" CMD build $(PKGSRC)

Contact - Imprint