Skip to content

Commit

Permalink
add more makefile directives
Browse files Browse the repository at this point in the history
  • Loading branch information
sckott committed Oct 9, 2019
1 parent 3d46837 commit bf4cc6f
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
all: move rmd2md
PACKAGE := $(shell grep '^Package:' DESCRIPTION | sed -E 's/^Package:[[:space:]]+//')
RSCRIPT = Rscript --no-init-file

move:
cd inst/vign;\
Expand All @@ -8,3 +9,24 @@ move:
rmd2md:
cd vignettes;\
mv rvertnet_vignette.md rvertnet_vignette.Rmd

all:
${RSCRIPT} -e 'library(methods); devtools::compile_dll()'

test:
${RSCRIPT} -e 'library(methods); devtools::test()'

doc:
@mkdir -p man
${RSCRIPT} -e "library(methods); devtools::document()"

install:
R CMD INSTALL .

build:
R CMD build .

check: build
_R_CHECK_CRAN_INCOMING_=FALSE R CMD check --as-cran --no-manual `ls -1tr ${PACKAGE}*gz | tail -n1`
@rm -f `ls -1tr ${PACKAGE}*gz | tail -n1`
@rm -rf ${PACKAGE}.Rcheck

0 comments on commit bf4cc6f

Please sign in to comment.