-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
41 lines (29 loc) · 698 Bytes
/
Makefile
File metadata and controls
41 lines (29 loc) · 698 Bytes
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
34
35
36
37
38
39
40
41
GENERATED_FILES = \
.git/hooks/pre-commit \
.git/hooks/post-rewrite \
man \
needs.R \
README.md
SOURCE_FILES = R/*.R
all: $(GENERATED_FILES) $(SOURCE_FILES)
clean:
rm -rf $(GENERATED_FILES)
MAKEFLAGS += --no-builtin-rules
.SUFFIXES:
.PHONY: all clean check
.SECONDARY:
.git/hooks/pre-commit .git/hooks/post-rewrite:
ln -sf ../../bin/pre-commit $@
chmod u+x $@
check:
Rscript -e "devtools::check(check_version = T, cleanup = F)"
echo 1 > inst/extdata/promptUser
man: $(SOURCE_FILES)
mkdir -p man
Rscript --vanilla -e "devtools::document()"
man/%.Rd:
make man
README.md: readme-src.Rmd
Rscript --vanilla bin/render.R
needs.R: $(SOURCE_FILES)
Rscript --vanilla bin/build.R