From df5b95cb7c666fa99fcc4f7a0407622754fff440 Mon Sep 17 00:00:00 2001 From: Till Hoffmann Date: Sat, 16 Dec 2023 02:15:27 +0100 Subject: [PATCH] Simplify build and check. --- .gitignore | 2 ++ Makefile | 20 +++++--------------- 2 files changed, 7 insertions(+), 15 deletions(-) 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