diff --git a/.gitignore b/.gitignore index 0a55e9e..9896d82 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,7 @@ .Rproj.user *.Rproj +*.Rcheck +*.tar.gz inst/doc vignettes/getting_started *.html diff --git a/Makefile b/Makefile index 5713ea6..72d56fc 100644 --- a/Makefile +++ b/Makefile @@ -1,17 +1,7 @@ -.PHONY : build clean +.PHONY : build -build : build/gptoolsStan - -build/gptoolsStan : -# Update documentation. +build : Rscript -e 'devtools::document()' -# Clean up an potential previous builds and create a clean directory. - rm -rf build && mkdir -p build -# Build, check, and extract the package. - cd build \ - && NOT_CRAN=true R CMD build .. \ - && R CMD check --as-cran *.tar.gz \ - && tar -xf *.tar.gz - -clean : - rm -rf build + rm -f *.tar.gz + NOT_CRAN=true R CMD build . + R CMD check --as-cran *.tar.gz