forked from ropensci/patentsview
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
35 lines (26 loc) · 1002 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
34
35
all: data-raw/fieldsdf.csv doc README.md test
# Pull endpoint fields from PatentsView website
data-raw/fields.csv: data-raw/fieldsdf.R
Rscript -e "source('data-raw/fieldsdf.R')"
# Render README.Rmd to README.md
README.md: README.Rmd
- Rscript -e "rmarkdown::render('README.Rmd', output_file = 'README.md', output_dir = getwd(), output_format = 'github_document', quiet = TRUE)"
- Rscript -e "file.remove('README.html')"
ifeq ($(CRAN),true)
else
echo "[![ropensci\_footer](http://ropensci.org/public_images/github_footer.png)](https://ropensci.org)" >> README.md
endif
doc:
Rscript -e "devtools::document()"
test:
Rscript -e "devtools::test()"
# Build pkgdown site
site:
Rscript -e "source('vignettes/build.R'); build_site_locally()"
# "Half-render" the vigenttes for the ROpenSci builds. See the README in
# the vignettes directory for details.
half-render:
Rscript -e "source('vignettes/build.R'); half_render_vignettes()"
clean:
rm -R README.md inst/doc docs
.PHONY: doc test clean