Skip to content

Commit

Permalink
Add build and check targets.
Browse files Browse the repository at this point in the history
  • Loading branch information
tillahoffmann committed Dec 15, 2023
1 parent 7ecbd2d commit cd78d3a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
1 change: 1 addition & 0 deletions R-package/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
inst/doc
vignettes/getting_started
*.html
check
11 changes: 10 additions & 1 deletion R-package/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.PHONY : stan_files man vignettes
.PHONY : build check stan_files man vignettes
SOURCE_DIR = ../stan/gptools/stan/gptools
SOURCE_FILES = $(wildcard $(SOURCE_DIR)/*.stan)
TARGET_DIR = inst/extdata
Expand All @@ -21,3 +21,12 @@ vignettes/getting_started.html : vignettes/getting_started.Rmd vignettes/getting

man :
Rscript -e 'devtools::document()'


build :
mkdir -p build
cd build && R CMD build ..

check : build
mkdir -p check
cd check && R CMD check ../build/*.tar.gz

0 comments on commit cd78d3a

Please sign in to comment.