-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
33 lines (27 loc) · 952 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
clean:
@Rscript -e 'devtools::clean_dll()'
@Rscript -e 'devtools::clean_dll("pudutest")'
test:
@echo "Testing R code"
@Rscript -e 'devtools::document()'
@Rscript -e 'devtools::load_all(); devtools::test()'
@echo "Testing C++ code"
@Rscript -e 'devtools::load_all("pudutest"); devtools::test("pudutest")'
check:
@echo "Local"
@Rscript -e 'devtools::document()'
@Rscript -e 'devtools::check(); devtools::check("pudutest")'
# this says "SSL certificate problem: self-signed certificate"
# @echo "RHub"
# @Rscript -e 'devtools::check_rhub()'
# @echo "Win Builder"
# @Rscript -e 'devtools::check_win_release()'
# @Rscript -e 'devtools::check_win_devel()'
site:
@Rscript -e 'devtools::document()'
@Rscript -e 'pkgdown::build_site()'
install:
@Rscript -e 'devtools::install()'
clang_format=`which clang-format-14`
format: $(shell find . -name '*.h') $(shell find . -name '*.hpp') $(shell find . -name '*.cpp')
@${clang_format} -i $?