Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 2dfc8185e5
Fetching contributors…

Cannot retrieve contributors at this time

43 lines (32 sloc) 0.995 kb
# prepare the package for release
NEWS = NEWS
PKGNAME := $(shell sed -n "s/Package: *\([^ ]*\)/\1/p" DESCRIPTION)
PKGVERS := $(shell sed -n "s/Version: *\([^ ]*\)/\1/p" DESCRIPTION)
PKGSRC := $(shell basename $(PWD))
all: news check clean
# convert markdown to R's NEWS format
news: $(NEWS)
sed -e 's/^-/ -/' -e 's/^## *//' -e 's/^#/\t\t/' <NEWS.md | fmt -80 >$(NEWS)
deps:
Rscript -e 'if (!require("Rd2roxygen")) install.packages("Rd2roxygen", repos="http://cran.r-project.org")'
docs:
R -q -e 'library(Rd2roxygen); rab(".", build = FALSE)'
build: docs
cd ..;\
R CMD build $(PKGSRC)
install: build
cd ..;\
R CMD INSTALL $(PKGNAME)_$(PKGVERS).tar.gz
check: build
cd ..;\
R CMD check $(PKGNAME)_$(PKGVERS).tar.gz --as-cran
# the svn mirror created by
# git svn clone svn://svn.rforge.net/knitr/trunk knitr-svn
# commit everything to RForge
svn:
cd ../knitr-svn;\
git pull git://github.com/yihui/knitr.git;\
git svn dcommit
clean:
cd ..;\
$(RM) -r $(PKGNAME).Rcheck/
Jump to Line
Something went wrong with that request. Please try again.